Skip to content

flowAsync

flowAsync<A, B>(ab): (a) => Promise<B>

Defined in: Composition/flowAsync.ts:18

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

(a) => Awaitable<B>

(a) => Promise<B>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition

flowAsync<A, B, C>(ab, bc): (a) => Promise<C>

Defined in: Composition/flowAsync.ts:19

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

C

(a) => Awaitable<B>

(b) => Awaitable<C>

(a) => Promise<C>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition

flowAsync<A, B, C, D>(ab, bc, cd): (a) => Promise<D>

Defined in: Composition/flowAsync.ts:23

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

C

D

(a) => Awaitable<B>

(b) => Awaitable<C>

(c) => Awaitable<D>

(a) => Promise<D>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition

flowAsync<A, B, C, D, E>(ab, bc, cd, de): (a) => Promise<E>

Defined in: Composition/flowAsync.ts:28

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

C

D

E

(a) => Awaitable<B>

(b) => Awaitable<C>

(c) => Awaitable<D>

(d) => Awaitable<E>

(a) => Promise<E>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition

flowAsync<A, B, C, D, E, F>(ab, bc, cd, de, ef): (a) => Promise<F>

Defined in: Composition/flowAsync.ts:34

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

C

D

E

F

(a) => Awaitable<B>

(b) => Awaitable<C>

(c) => Awaitable<D>

(d) => Awaitable<E>

(e) => Awaitable<F>

(a) => Promise<F>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition

flowAsync<A, B, C, D, E, F, G>(ab, bc, cd, de, ef, fg): (a) => Promise<G>

Defined in: Composition/flowAsync.ts:41

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

C

D

E

F

G

(a) => Awaitable<B>

(b) => Awaitable<C>

(c) => Awaitable<D>

(d) => Awaitable<E>

(e) => Awaitable<F>

(f) => Awaitable<G>

(a) => Promise<G>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition

flowAsync<A, B, C, D, E, F, G, H>(ab, bc, cd, de, ef, fg, gh): (a) => Promise<H>

Defined in: Composition/flowAsync.ts:49

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

C

D

E

F

G

H

(a) => Awaitable<B>

(b) => Awaitable<C>

(c) => Awaitable<D>

(d) => Awaitable<E>

(e) => Awaitable<F>

(f) => Awaitable<G>

(g) => Awaitable<H>

(a) => Promise<H>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition

flowAsync<A, B, C, D, E, F, G, H, I>(ab, bc, cd, de, ef, fg, gh, hi): (a) => Promise<I>

Defined in: Composition/flowAsync.ts:58

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

C

D

E

F

G

H

I

(a) => Awaitable<B>

(b) => Awaitable<C>

(c) => Awaitable<D>

(d) => Awaitable<E>

(e) => Awaitable<F>

(f) => Awaitable<G>

(g) => Awaitable<H>

(h) => Awaitable<I>

(a) => Promise<I>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition

flowAsync<A, B, C, D, E, F, G, H, I, J>(ab, bc, cd, de, ef, fg, gh, hi, ij): (a) => Promise<J>

Defined in: Composition/flowAsync.ts:68

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

C

D

E

F

G

H

I

J

(a) => Awaitable<B>

(b) => Awaitable<C>

(c) => Awaitable<D>

(d) => Awaitable<E>

(e) => Awaitable<F>

(f) => Awaitable<G>

(g) => Awaitable<H>

(h) => Awaitable<I>

(i) => Awaitable<J>

(a) => Promise<J>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition

flowAsync<A, B, C, D, E, F, G, H, I, J, K>(ab, bc, cd, de, ef, fg, gh, hi, ij, jk): (a) => Promise<K>

Defined in: Composition/flowAsync.ts:79

Composes asynchronous or synchronous functions from left to right, returning a reusable async function.

A

B

C

D

E

F

G

H

I

J

K

(a) => Awaitable<B>

(b) => Awaitable<C>

(c) => Awaitable<D>

(d) => Awaitable<E>

(e) => Awaitable<F>

(f) => Awaitable<G>

(g) => Awaitable<H>

(h) => Awaitable<I>

(i) => Awaitable<J>

(j) => Awaitable<K>

(a) => Promise<K>

const processId = flowAsync(
  (id: number) => Promise.resolve(`user-${id}`),
  name => name.toUpperCase()
);
await processId(42); // "USER-42"
  • pipeAsync for immediate async value pipeline execution
  • flow for synchronous function composition