Skip to content

Commit

Permalink
docs: add await
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi committed Oct 4, 2024
1 parent 2ea9e18 commit 5533960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ functions.
```ts
import { pipe } from "@core/pipe/async";

const result = pipe(
const result = await pipe(
1,
(v) => Promise.resolve(v + 1), // inferred as (v: number) => number | Promise<number>
(v) => Promise.resolve(v * 2), // inferred as (v: number) => number | Promise<number>
Expand Down

0 comments on commit 5533960

Please sign in to comment.