Sink.cancelled
Immediately cancel the stream
Signature
Description
Immediately cancel the stream
Example
In this example, we have a source that generates numbers from 1 to 5 but as we have used cancelled we get NotUsed
as materialized value and stream cancels.
Reactive Streams semantics
cancels immediately