stopWhen

stopWhen cancels the source when the trigger completes normally. If the either source or trigger completes with cancellation or with an error, the first one is propagates after both are completed.

StopWhenSender!(Sender, Trigger)
stopWhen
(
Sender
Trigger
)
(
Sender source
,
Trigger trigger
)

Meta