Skip to content

What happens with debt when a stream is canceled? #58

Closed Answered by smol-ninja
razgraf asked this question in Q&A
Discussion options

You must be logged in to vote

You can refer to the "Table" in this discussion.

To summarize:

  • pause() will pause the stream by setting ratePerSecond to zero. It will also store debt accumulated until then. It can only be called by the sender.
  • void() will also pause the stream but it will set debt to zero. It can only be called by the recipient.

cc @andreivladbrg.

Replies: 5 comments 22 replies

Comment options

You must be logged in to vote
2 replies
@razgraf
Comment options

razgraf May 20, 2024
Maintainer Author

@smol-ninja
Comment options

Answer selected by razgraf
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@razgraf
Comment options

razgraf May 9, 2024
Maintainer Author

@andreivladbrg
Comment options

@razgraf
Comment options

razgraf May 10, 2024
Maintainer Author

@andreivladbrg
Comment options

@razgraf
Comment options

razgraf May 10, 2024
Maintainer Author

Comment options

You must be logged in to vote
14 replies
@razgraf
Comment options

razgraf May 16, 2024
Maintainer Author

@smol-ninja
Comment options

@andreivladbrg
Comment options

@razgraf
Comment options

razgraf May 20, 2024
Maintainer Author

@smol-ninja
Comment options

Comment options

You must be logged in to vote
1 reply
@smol-ninja
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants