Skip to main content

Function: asConcur()

asConcur<Value>(iterable): ConcurIterable<Value>

Returns a concur iterable wrapper around iterable.

Type Parameters

Value

Parameters

iterable: Iterable<Value, any, any> | AsyncIterable<Value, any, any> | ConcurIterable<Value>

Returns

ConcurIterable<Value>

Example

const concurIterable = asConcur([`sloth`, `more sloth`, `even more sloth`])

await forEachConcur(console.log, concurIterable)
//=> sloth
//=> more sloth
//=> even more sloth

Defined in

core.d.ts:309