Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Async

Hierarchy

  • Async

Index

Methods

all

any

apply

applyEach

  • applyEach(fns: Function[], argsAndCallback: any[]): void

applyEachSeries

  • applyEachSeries(fns: Function[], argsAndCallback: any[]): void

asyncify

  • asyncify(fn: Function): Function

auto

  • auto(tasks: any, callback?: function): void
  • Parameters

    • tasks: any
    • Optional callback: function
        • (error: Error, results: any): void
        • Parameters

          • error: Error
          • results: any

          Returns void

    Returns void

cargo

  • cargo(worker: function, payload?: number): AsyncCargo

compose

  • compose(...fns: Function[]): void

concat

concatSeries

constant

  • constant(...values: any[]): Function

detect

detectLimit

  • detectLimit<T>(arr: T[], limit: number, iterator: AsyncBooleanIterator<T>, callback?: function): any

detectSeries

dir

  • dir(fn: Function, ...arguments: any[]): void

doDuring

  • Parameters

    • fn: AsyncVoidFunction
    • test: function
        • (testCallback: function): void
        • Parameters

          • testCallback: function
              • (error: Error, truth: boolean): void
              • Parameters

                • error: Error
                • truth: boolean

                Returns void

          Returns void

    • callback: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

doUntil

doWhilst

during

  • Parameters

    • test: function
        • (testCallback: function): void
        • Parameters

          • testCallback: function
              • (error: Error, truth: boolean): void
              • Parameters

                • error: Error
                • truth: boolean

                Returns void

          Returns void

    • fn: AsyncVoidFunction
    • callback: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

each

eachLimit

eachSeries

ensureAsync

  • ensureAsync(fn: function): Function
  • Parameters

    • fn: function
        • (...argsAndCallback: any[]): void
        • Parameters

          • Rest ...argsAndCallback: any[]

          Returns void

    Returns Function

every

everyLimit

  • everyLimit<T>(arr: T[], limit: number, iterator: AsyncBooleanIterator<T>, callback?: function): any

filter

filterLimit

  • filterLimit<T>(arr: T[], limit: number, iterator: AsyncResultIterator<T, boolean>, callback?: function): any
  • Type parameters

    • T

    Parameters

    • arr: T[]
    • limit: number
    • iterator: AsyncResultIterator<T, boolean>
    • Optional callback: function
        • (results: T[]): any
        • Parameters

          • results: T[]

          Returns any

    Returns any

filterSeries

  • filterSeries<T>(arr: T[], iterator: AsyncResultIterator<T, boolean>, callback?: function): any

foldl

foldr

forEachOf

forEachOfLimit

forEachOfSeries

forever

  • forever(next: function, errBack: function): void
  • Parameters

    • next: function
        • (errCallback: function): void
        • Parameters

          • errCallback: function
              • (err: Error): void
              • Parameters

                • err: Error

                Returns void

          Returns void

    • errBack: function
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns void

inject

iterator

  • iterator(tasks: Function[]): Function

log

  • log(fn: Function, ...arguments: any[]): void

map

mapLimit

mapSeries

memoize

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

nextTick

  • nextTick(callback: Function): void

noConflict

parallel

parallelLimit

priorityQueue

queue

reduce

reduceRight

reject

rejectLimit

  • rejectLimit<T>(arr: T[], limit: number, iterator: AsyncResultIterator<T, boolean>, callback?: function): any
  • Type parameters

    • T

    Parameters

    • arr: T[]
    • limit: number
    • iterator: AsyncResultIterator<T, boolean>
    • Optional callback: function
        • (results: T[]): any
        • Parameters

          • results: T[]

          Returns any

    Returns any

rejectSeries

  • rejectSeries<T>(arr: T[], iterator: AsyncResultIterator<T, boolean>, callback?: function): any

retry

  • retry<T>(opts: number, task: function, callback: function): void
  • retry<T>(opts: object, task: function, callback: function): void
  • Type parameters

    • T

    Parameters

    • opts: number
    • task: function
    • callback: function
        • (error: Error, results: any): void
        • Parameters

          • error: Error
          • results: any

          Returns void

    Returns void

  • Type parameters

    • T

    Parameters

    • opts: object
      • interval: number
      • times: number
    • task: function
    • callback: function
        • (error: Error, results: any): void
        • Parameters

          • error: Error
          • results: any

          Returns void

    Returns void

select

selectLimit

  • selectLimit<T>(arr: T[], limit: number, iterator: AsyncResultIterator<T, boolean>, callback?: function): any
  • Type parameters

    • T

    Parameters

    • arr: T[]
    • limit: number
    • iterator: AsyncResultIterator<T, boolean>
    • Optional callback: function
        • (results: T[]): any
        • Parameters

          • results: T[]

          Returns any

    Returns any

selectSeries

  • selectSeries<T>(arr: T[], iterator: AsyncResultIterator<T, boolean>, callback?: function): any

seq

  • seq(...fns: Function[]): void

series

setImmediate

  • setImmediate(callback: Function): void

some

someLimit

  • someLimit<T>(arr: T[], limit: number, iterator: AsyncBooleanIterator<T>, callback?: function): any

sortBy

times

timesLimit

timesSeries

unmemoize

  • unmemoize(fn: Function): Function

until

waterfall

  • waterfall(tasks: Function[], callback?: function): void
  • Parameters

    • tasks: Function[]
    • Optional callback: function
        • (err: Error, result: any): void
        • Parameters

          • err: Error
          • result: any

          Returns void

    Returns void

whilst

wrapSync

  • wrapSync(fn: Function): Function