Replies: 1 comment
-
Definately good idea to document those. In case of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The subscriber lends itself really well to usage in loop-selects such as this one:
But, one can only do this if the future in question (the implementation of
StreamExt::next
onSubscriber
) is cancellation safe. Else, the next message may get dropped or corrupted. The tokio docs are full of explanations on this, and frequently, items have a# Cancellation Safety
section.Are you making any guarantees about the cancellation safety of the futures in this crate? It would be cool to document those!
Beta Was this translation helpful? Give feedback.
All reactions