Skip to content

Support async pipe #3

@4513ECHO

Description

@4513ECHO

Currently piping async function to sync function is impossible.

const syncFn = (x) => { ... }
const asyncFn = async (x) => { ... }

await pipe(
  [],
  asyncFn,
  syncFn, // Error because the argument is `Promise<T>`
)

We need jsr:@core/pipe/async or something to support it.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions