pete/lib/runs/sync

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

Description:
  • This runs target function synchronously.
    Single run is finished as soon as target function returns.

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