Updated examples
This commit is contained in:
committed by
Agamemnon Zorbas
parent
99a07d22dd
commit
97c250bcfb
@ -18,5 +18,5 @@ const promisify = func =>
|
||||
|
||||
```js
|
||||
const delay = promisify((d, cb) => setTimeout(cb, d))
|
||||
delay(2000).then(() => console.log('Hi!')) -> // Promise resolves after 2s
|
||||
delay(2000).then(() => console.log('Hi!')) // // Promise resolves after 2s
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user