Skip to main content

Function: emptyConcur()

emptyConcur(apply): Promise<void>

A concur iterable that contains zero values.

Can be used as a concur iterable of any type.

Like [], but for concur iterables.

Parameters

apply

ConcurIterableApply<any>

Returns

Promise<void>

Example

import { emptyConcur, pipe, reduceConcur, toArray } from 'lfi'

console.log(
await pipe(
emptyConcur,
reduceConcur(toArray()),
),
)
//=> []
Playground

Since

v0.0.2

Defined in

core.d.ts:414