-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,6 @@ | |
npm install p-signal | ||
``` | ||
|
||
Deno: | ||
```ts | ||
import { pSignal } from 'https://deno.land/x/p_signal/index.ts' | ||
``` | ||
|
||
## Why | ||
|
||
In the past few years, async implementations are on the rise. Canceling promises is an important part of working with async code. For example, a very common pattern is for a user task to be canceled or interrupted with the need to compute the latest value. However a good solution for cancelation doesn't exist (see [Alternatives](#alternatives) section for explanation). In this new async world `p-signal` can help. | ||
|
@@ -113,3 +108,4 @@ For the past years I've experimented with different ways to cancel promises. Unf | |
- [p-cancelable](https://github.com/sindresorhus/p-cancelable) — Create a promise that can be canceled | ||
- [promise-fun](https://github.com/sindresorhus/promise-fun) — Promise packages, patterns, chat, and tutorials | ||
- [CAF](https://github.com/getify/CAF) — Cancelable Async Flows (CAF) | ||
- [Deno async](https://deno.land/[email protected]/async) — Async utilities for Deno |