pete/lib/runs/async

(require("pete/lib/runs/async"))(fn, options, state) → {module:pete/lib/runner~run}

Description:
  • This runs target async function.
    Single run is finished after returned Promise is resolved (or fails).

Source:
Parameters:
Name Type Description
fn function

to run

options object
Properties
Name Type Attributes Description
args Array.<any> <optional>

to pass to target function

state object

to modify with current and finished times

Returns:
Type
module:pete/lib/runner~run