You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, it is very difficult to do one-shot / conditionally-active subscriptions, because you can't refer to the return value of a subscriber from within the closure:
let listener = Frame::subscribe(|_| {
listener.stop();// this will not work});
An idea is to add a Context parameter that includes the message's source and to provide a stop method. We want to avoid using the return value as that may be used for some other form of semantics (i.e. #253 or early-exiting a chain of handlers).
The text was updated successfully, but these errors were encountered:
At present, it is very difficult to do one-shot / conditionally-active subscriptions, because you can't refer to the return value of a subscriber from within the closure:
An idea is to add a
Context
parameter that includes the message's source and to provide astop
method. We want to avoid using the return value as that may be used for some other form of semantics (i.e. #253 or early-exiting a chain of handlers).The text was updated successfully, but these errors were encountered: