proposal-cancellation
Proposal for a Cancellation API for ECMAScript (by tc39)
proposal-get-intrinsic
EcmaScript language proposal for a way to get intrinsics. (by tc39)
proposal-cancellation | proposal-get-intrinsic | |
---|---|---|
2 | 2 | |
262 | 31 | |
-0.4% | - | |
0.0 | 4.9 | |
about 3 years ago | 8 months ago | |
HTML | HTML | |
BSD 3-clause "New" or "Revised" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proposal-cancellation
Posts with mentions or reviews of proposal-cancellation.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2020-11-07.
-
Promise.any - cancel the rest?
To cancel a task, you'll have to do that plumbing yourself, and it depends on what you're wanting to cancel. Most libraries provide some sort of mechanism to do the cancelation. The fetch API allows you to pass in an abort controller, which provides a way for you to signal to the running fetch request to abort. setTimeout() has clearTimeout(). In Node, if you read a file as a stream instead of a simple fs.promises.readFile(), you'll have the power to just stop trying to grab more data from the stream. Each async API has its own way to enable aborting (or, sometimes it doesn't provide any way to abort at all). There's unfortunately no standard way to handle aborting (though there is this stalled JavaScript proposal that attempted to standardize an abort system).
-
Thenable: how to make a JavaScript object await-friendly, and why it is useful
Finally, one other related and important concept is the token-based cancelation of asynchronous subscriptions (the current TC39 proposal), which I plan to cover later. If you find these topics interesting, consider following me on Twitter for any updates.
proposal-get-intrinsic
Posts with mentions or reviews of proposal-get-intrinsic.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-01.
-
Tips and Tricks: restore a modified/overridden native function
In the future we should have a way to get the original definitions for built-ins directly from the current realm as outlined by this (stage 1, so still early) proposal.
-
Updates from the 85th meeting of TC39
Get Intrinsic A robust way to retrieve intrinsics to first-run code.
What are some alternatives?
When comparing proposal-cancellation and proposal-get-intrinsic you can also consider the following projects:
ecma262 - Status, process, and documents for ECMA-262
proposal-class-static-block - ECMAScript class static initialization blocks
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
proposal-iterator-helpers - Methods for working with iterators in ECMAScript
proposal-relative-indexing-method - A TC39 proposal to add an .at() method to all the basic indexable classes (Array, String, TypedArray)
proposal-bigint-math - Draft specification for supporting BigInts in JavaScript’s Math methods.