mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-26 09:54:19 +00:00
Subsume the demuxer into the reactor
+ Simplify the design by demuxing events directly in the reactor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user