Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reader: support aborting a read #13688

Open
mfulton26 opened this issue Feb 16, 2022 · 4 comments
Open

Reader: support aborting a read #13688

mfulton26 opened this issue Feb 16, 2022 · 4 comments
Labels
public API related to "Deno" namespace in JS suggestion suggestions for new features (yet to be agreed)

Comments

@mfulton26
Copy link

e.g. I want to be able to read bytes on a TCP socket connection and await more bytes for N milliseconds before processing those received bytes.

see also #10181

@mfulton26 mfulton26 changed the title Reader: support canceling a read Reader: support aborting a read Feb 16, 2022
@stale
Copy link

stale bot commented Apr 18, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 18, 2022
@mfulton26
Copy link
Author

Keep alive

@stale stale bot removed the stale label Apr 22, 2022
@bartlomieju bartlomieju added public API related to "Deno" namespace in JS suggestion suggestions for new features (yet to be agreed) labels Apr 23, 2022
@joe-hx
Copy link

joe-hx commented Nov 22, 2022

Adding support for the request as I would like to be able to abort a read on a piped Deno.Process.stdout.

@HurricanKai
Copy link

Another usage example for this would be reading from stdin with cancellation. Useful when asking for user input optionally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
public API related to "Deno" namespace in JS suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

4 participants