npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

timeout-thunk

1.0.0

@hemanth

npmHomeRepoSnykSocket
Downloads:2
$ npm install timeout-thunk
DailyWeeklyMonthlyYearly

timeout-thunk Build Status

setTimeout thunk.

Install

$ npm install --save timeout-thunk

Usage

var timeoutThunk = require('timeout-thunk');

timeoutThunk(7337)(function() { 
  console.log('Meow!');
});

// Logs Meow! after 7337ms.

API

timeoutThunk -> timeOut -> func

timeOut

Required
Type: Number

Time in ms.

func

Type: function

function to execute.

License

MIT © hemanth