Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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);
```