-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Labels
public APIrelated to "Deno" namespace in JSrelated to "Deno" namespace in JSsuggestionsuggestions for new features (yet to be agreed)suggestions for new features (yet to be agreed)
Description
Hey,
It would be really cool if Deno aligned with the web platform's cancellation primitive AbortSignal/AbortController which Deno already supports but not in most of its APIs.
Myself and a few others have been adding support for AbortSignal to all of the APIs it fits in Node.js to make it easier for people to write universal JavaScript code. For example:
Deno.readTextFile('./someFile', { signal });
Deno.writeTextFile('./someFile', { signal });And more generally - in Deno's stream abstractions. Would you be open to adding this?
(Sorry for not being too available on Discord with the baby/health stuff/new job :))
jsejcksn, aapoalas, mitranim, justinmchase and mchao123
Metadata
Metadata
Assignees
Labels
public APIrelated to "Deno" namespace in JSrelated to "Deno" namespace in JSsuggestionsuggestions for new features (yet to be agreed)suggestions for new features (yet to be agreed)