Skip to content

Commit

Permalink
Add warning regarding cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Dec 28, 2022
1 parent 4f3a699 commit e225fa8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions articles/reactive-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ The `Sink` operator uses the nested workflow to specify a reactive operation ove

> [!Tip]
> `Sink` operators are very useful to prevent side-effects from affecting the source sequence. Even if the inner sequence terminates early, or changes the timing of emitted values, these effects will not propagate to the outer sequence.
> [!Warning]
> If the source sequence terminates, the subscription to the nested sequence will be cancelled. If the reactive operation needs to be fully asynchronous and decoupled from the main sequence, consider using @subjects to process items in a separate branch of the workflow.

0 comments on commit e225fa8

Please sign in to comment.