proposal-cancellation
proposal-array-find-from-last
proposal-cancellation | proposal-array-find-from-last | |
---|---|---|
2 | 5 | |
262 | 112 | |
-0.4% | - | |
0.0 | 5.3 | |
about 3 years ago | almost 2 years ago | |
HTML | HTML | |
BSD 3-clause "New" or "Revised" License | MIT License |
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
-
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-array-find-from-last
-
JavaScript's New Features: Exploring the Latest Additions to the Language
Array find from last
- ES2023 candidate source code + spec
-
Find last occurrence of string in array of arrays
Apparently there is a proposal for .findLast() and .findLastIndex().
-
Finding elements in `Array`s and TypedArrays
Proposal page: proposal-array-find-from-last.
-
Updates from 80th TC39 meeting
Array find from last: findLast() and findLastIndex() methods on Array.prototype.
What are some alternatives?
ecma262 - Status, process, and documents for ECMA-262
proposal-intl-locale-info - An API to expose information of locale, such as week data ( first day of a week, weekend start, weekend end), hour cycle, measurement system, commonly used calendar, etc.
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
proposal-regexp-legacy-features - Legacy static properties of the RegExp constructor in JavaScript
proposal-symbols-as-weakmap-keys - Permit Symbols as keys in WeakMaps, entries in WeakSets and WeakRefs, and registered in FinalizationRegistries
proposal-intl-eradisplay - Intl.DateTimeFormat displays era field only if date displayed is in same era as today's
proposal-lazy-import - A proposal for introducing a way to defer evaluate of a module
proposal-hashbang - #! for JS