Module: legio-async

legio-async

Source:

Methods

(static) denodeify(fn, thatopt) → {function}

Wraps a node-async-style function so it can return a promise.
Parameters:
Name Type Attributes Description
fn function
that * <optional>
The `this` argument passed to `fn`
Source:
Returns:
A function which returns a promise.
Type
function