a-synchronous / a-synchronous/rubico
rubico/x/sleep
Aperta
enhancement
good first issue
help wanted
- Lingua principale
- JavaScript
- Stelle
- 283
- Fork
- 17
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### sleep
asynchronously waits a set period of time
```javascript
y = sleep(duration)(x)
```
`y` is `x`
`y` is always a Promise that resolves in `duration` milliseconds
```javascript
pipe([
() => console.log('hey'),
sleep(1000), // wait for 1s
() => console.log('ho'),
])
```
TODO
* [ ] - [documentation entry](https://github.com/a-synchronous/rubico/tree/master/x#documentation)
* [ ] - implementation + tests
[guidelines](https://github.com/a-synchronous/rubico/issues/41)
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.