- connect
auto connect(Receiver receiver)
Undocumented in source. Be warned that the author may not have intended to support it.
- connect
auto connect(Receiver receiver)
Undocumented in source. Be warned that the author may not have intended to support it.
- getStopToken
StopToken getStopToken()
Undocumented in source. Be warned that the author may not have intended to support it.
- run
void run(Nullable!Sender sender)
Undocumented in source. Be warned that the author may not have intended to support it.
- run
void run(Sender sender)
Undocumented in source. Be warned that the author may not have intended to support it.
- stop
bool stop()
Undocumented in source. Be warned that the author may not have intended to support it.
- stop
bool stop()
Undocumented in source. Be warned that the author may not have intended to support it.
A Nursery is a place for senders to be ran in, while being a Sender itself. Stopping the Nursery cancels all senders. When any Sender completes with an Error all Senders are canceled as well. Cancellation is signaled with a StopToken. Senders themselves bare the responsibility to respond to stop requests. When cancellation happens all Senders are waited on for completion. Senders can be added to the Nursery at any time. Senders are only started when the Nursery itself is being awaited on.