npm.io
0.0.2 • Published 13 years ago

meanwhile

Licence
MIT
Version
0.0.2
Deps
0
Vulns
0
Weekly
0

NAME

meanwhile(3)

SYNOPSIS

Some setInterval sugar. A program keeps running, meanwhile a check is performed at a specified interval and if the resut is true, a callback gets called.

EXAMPLE

var meanwhile = require('meanwhile')
var x = false

meanwhile(
  function() { return x },
  function() { console.log('x is now true') }
)

x = true

Keywords