lang: Core language and GAPI changes

These changes help plumb things in more easily for the lambdas work.
This commit is contained in:
James Shubin
2023-09-25 16:10:10 -04:00
parent 47d2a661bc
commit d4b1e8f1be
6 changed files with 261 additions and 1037 deletions

View File

@@ -119,11 +119,13 @@ type GAPI interface {
// Next returns a stream of switch events. The engine will run Graph()
// to build a new graph after every Next event.
// TODO: add context for shutting down to the input and change Close to Cleanup
Next() chan Next
// Close shuts down the GAPI. It asks the GAPI to close, and must cause
// Next() to unblock even if is currently blocked and waiting to send a
// new event.
// TODO: change Close to Cleanup
Close() error
}