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
change the object returned by start_detached from optional<StopSource*>
to an immovable object that has request_stop()
the immovable object constructor will connect and start the sender. request_stop will forward to the stop_src
If needed, a copyable stop_ref type can store a pointer to the immovable object and forward calls to its request_stop to the immoveable object.
The text was updated successfully, but these errors were encountered:
I don't think returning the operation state would help - I think this would just move the allocation responsibility to the caller. The operation state needs to live somewhere that outlives the entire call stack (an interrupt). That's the job of the static_allocator at the moment.
(Admittedly, It might be that returning an optional<StopSource*> is of limited use too - we might want instead to access the stop source through the same type tag used for the call to start_detached.)
change the object returned by start_detached from
optional<StopSource*>
to an immovable object that has
request_stop()
the immovable object constructor will connect and start the sender.
request_stop
will forward to thestop_src
If needed, a copyable
stop_ref
type can store a pointer to the immovable object and forward calls to itsrequest_stop
to the immoveable object.The text was updated successfully, but these errors were encountered: