Skip to content

Commit

Permalink
✏️ update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Nov 8, 2023
1 parent 3a7ec12 commit d67a317
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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/std@0.151.0/async) — Async utilities for Deno

0 comments on commit d67a317

Please sign in to comment.