Module: legio-async/timeout

legio-async/timeout

new (require("legio-async/timeout"))(fn, time, wrapopt)

Parameters:
Name Type Attributes Default Description
fn function
time Number
wrap Boolean <optional>
true Indicates if the given function should be bound to the timeout object.
Source:
Source:

Methods

(static) start(time) → {Promise}

Parameters:
Name Type Description
time Number
Source:
Returns:
Type
Promise

cancel()

Clears the timeout.
Source:

start(timeopt)

Parameters:
Name Type Attributes Default Description
time Number <optional>
this.time
Source:

„Nejkrásnější ze všech tajemství je být géniem a vědět to jen sám.“ Mark Twain