Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paldepind/flyd-every
Takes a time interval t and creates a stream of the current time updated every t.
https://github.com/paldepind/flyd-every
Last synced: 15 days ago
JSON representation
Takes a time interval t and creates a stream of the current time updated every t.
- Host: GitHub
- URL: https://github.com/paldepind/flyd-every
- Owner: paldepind
- License: mit
- Created: 2015-05-01T05:55:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-11T06:15:56.000Z (over 8 years ago)
- Last Synced: 2024-09-18T07:21:47.447Z (2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flyd-every
Takes a number of milliseconds t and creates a stream of the current time updated every t.__Signature__
`Number -> Stream Number`
__Usage__
```javascript
var everySecond = every(1000);
flyd.map(function(time) {
// I'm called once every second
console.log('Current time is', time);
}, everySecond);
```