Subsume the demuxer into the reactor

+ Simplify the design by demuxing events directly in the reactor
This commit is contained in:
Sean Braithwaite
2019-09-13 11:33:38 -04:00
parent c62b7fbd7e
commit e7ee314c99
4 changed files with 57 additions and 196 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ type handleFunc = func(event Event) (Event, error)
// handles the concurrency and messaging guarantees. Events are sent via
// `trySend` are handled by the `handle` function to produce an iterator
// `next()`. Calling `close()` on a routine will conclude processing of all
// sent events and produce `last()` event representing the terminal state.
// sent events and produce `final()` event representing the terminal state.
type Routine struct {
name string
handle handleFunc