Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

call-delayed

braveg1rl81MIT1.0.0

setTimeout, but with arguments reversed.

readme

call-delayed Build Status Dependency Status

setTimeout, but with arguments reversed.

Rationale

It gets tiring to write

function delay(time,fn) {setTimeout(fn,time)}

You'll get some nice assertions as a bonus.

Usage

var delay = require("call-delayed")
delay(100, function{ console.log("Execution of this function has been delayed by 100ms.")})

License

call-delayed is released under the MIT License. Copyright (c) 2017 Braveg1rl