Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 533 Bytes

polyethylene.asyncindexedrunnable.md

File metadata and controls

13 lines (8 loc) · 533 Bytes

Home > polyethylene > AsyncIndexedRunnable

AsyncIndexedRunnable type

A function that receives an object (elem) and its index in the iteration and either returns a Promise to nothing or doesn't return anything

Signature:

export type AsyncIndexedRunnable<T> = (elem: T, index: number) => void | PromiseLike<void>;