Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

simple-polling

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-polling - npm Package Compare versions

Comparing version
0.3.0
to
0.3.1
+9
README.md
```
var poll = require('simple-polling')
poll(function (cb) { setTimeout(function () { console.log('polling...'); cb(Math.random()) })})
.until(function (num) { return num > 0.9 })
.every(1000)
.timeout_at(15000)
.run(function (num) { console.log('Finished with: ' + num) })
```
+1
-1

@@ -6,3 +6,3 @@ var poll = require('./poll')

.every(1000)
.timeout(15000)
.timeout_at(15000)
.run(function (num) { console.log('Finished with: ' + num) })

@@ -7,3 +7,3 @@ {

},
"version": "0.3.0",
"version": "0.3.1",
"description": "A simple polling abstraction for repeating an asynchronous action until a desired outcome is achieved.",

@@ -10,0 +10,0 @@ "main": "poll.js",