Most subscriptions needs to keep a closure over mutable internal state that's separate from the EventQueue machine state for callbacks and such. That way we can actually invoke the continuations when receiving events from the outside world. This can be coordinated manually with a ref, but we can provide a utility over this pattern.
Most subscriptions needs to keep a closure over mutable internal state that's separate from the
EventQueue
machine state for callbacks and such. That way we can actually invoke the continuations when receiving events from the outside world. This can be coordinated manually with a ref, but we can provide a utility over this pattern.