StreamSink impl async fn cancelled() #2339
Labels
awaiting
Waiting for responses, PR, further discussions, upstream release, etc
enhancement
New feature or request
I use spawn to send something in stream via StreamSink, and I want to close this green thread when dart stream is closed. So I suggest to add method for StreamSink cancelled like in https://docs.rs/tokio-util/latest/tokio_util/sync/struct.CancellationToken.html
The text was updated successfully, but these errors were encountered: