Skip to content

Provide a function to block js thread for given time.

Notifications You must be signed in to change notification settings

themez/node-wait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
themez
Apr 18, 2019
02d5e25 · Apr 18, 2019

History

1 Commit
Apr 18, 2019
Apr 18, 2019
Apr 18, 2019
Apr 18, 2019
Apr 18, 2019
Apr 18, 2019

Repository files navigation

node-wait

Provide a function to block js thread for given time.

const wait = require('node-wait')

const start = Date.now()
wait(1000)

console.log(Date.now() - start)
// 1003

About

Provide a function to block js thread for given time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published