Interface Async

Index

Methods

Methods

public all(arr: Array<T>, iterator: AsyncIterator, callback: (result: boolean) => any): any

Parameters

  • arr: Array<T>
  • iterator: AsyncIterator
  • callback: (result: boolean) => any

Returns

any

public any(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public apply(fn: Function, arguments?: Array<any>)

Parameters

  • fn: Function
  • arguments?: Array<any> optional

public auto(tasks: any, callback?: AsyncMultipleResultsCallback)

Parameters

public concat(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public concatSeries(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public detect(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public detectSeries(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public dir(fn: Function, arguments?: Array<any>)

Parameters

  • fn: Function
  • arguments?: Array<any> optional

public every(arr: Array<T>, iterator: AsyncIterator, callback: (result: boolean) => any): any

Parameters

  • arr: Array<T>
  • iterator: AsyncIterator
  • callback: (result: boolean) => any

Returns

any

public filter(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public filterSeries(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public foldl(arr: Array<T>, memo: R, iterator: AsyncMemoIterator, callback: AsyncSingleResultCallback): any

Parameters

Returns

any

public foldr(arr: Array<T>, memo: R, iterator: AsyncMemoIterator, callback: AsyncSingleResultCallback): any

Parameters

Returns

any

public forEach(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback)

Parameters

public forEachLimit(arr: Array<T>, limit: number, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback)

Parameters

public forEachSeries(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback)

Parameters

public inject(arr: Array<T>, memo: R, iterator: AsyncMemoIterator, callback: AsyncSingleResultCallback): any

Parameters

Returns

any

public iterator(tasks: Array<Function>): Function

Parameters

  • tasks: Array<Function>

Returns

Function

public log(fn: Function, arguments?: Array<any>)

Parameters

  • fn: Function
  • arguments?: Array<any> optional

public map(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public mapSeries(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public memoize(fn: Function, hasher?: Function): Function

Parameters

  • fn: Function
  • hasher?: Function optional

Returns

Function

public nextTick(callback: Function)

Parameters

  • callback: Function

public noConflict(): Async

Returns

Async

public parallel(tasks: Array<T>, callback?: AsyncMultipleResultsCallback)

Parameters

public parallel(tasks: T, callback?: AsyncMultipleResultsCallback)

Parameters

public parallelLimit(tasks: Array<T>, limit: number, callback?: AsyncMultipleResultsCallback)

Parameters

public parallelLimit(tasks: T, limit: number, callback?: AsyncMultipleResultsCallback)

Parameters

public queue(worker: AsyncWorker, concurrency: number): AsyncQueue

Parameters

Returns

AsyncQueue

public reduce(arr: Array<T>, memo: R, iterator: AsyncMemoIterator, callback: AsyncSingleResultCallback): any

Parameters

Returns

any

public reduceRight(arr: Array<T>, memo: R, iterator: AsyncMemoIterator, callback: AsyncSingleResultCallback): any

Parameters

Returns

any

public reject(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public rejectSeries(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public select(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public selectSeries(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public series(tasks: Array<T>, callback?: AsyncMultipleResultsCallback)

Parameters

public series(tasks: T, callback?: AsyncMultipleResultsCallback)

Parameters

public some(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public sortBy(arr: Array<T>, iterator: AsyncIterator, callback: AsyncMultipleResultsCallback): any

Parameters

Returns

any

public times(n: number, callback: AsyncTimesCallback)

Parameters

public timesSeries(n: number, callback: AsyncTimesCallback)

Parameters

public unmemoize(fn: Function): Function

Parameters

  • fn: Function

Returns

Function

public until(test: Function, fn: Function, callback: Function)

Parameters

  • test: Function
  • fn: Function
  • callback: Function

public waterfall(tasks: Array<T>, callback?: AsyncMultipleResultsCallback)

Parameters

public waterfall(tasks: T, callback?: AsyncMultipleResultsCallback)

Parameters

public whilst(test: Function, fn: Function, callback: Function)

Parameters

  • test: Function
  • fn: Function
  • callback: Function