This commit is contained in:
Sindre Sorhus 2017-11-19 16:36:02 +07:00
parent 0324327342
commit a49122996c
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ pTimeout(delayedPromise, 50).then(() => 'foo');
Returns a decorated `input` that times out after `ms` time.
If you pass in a cancelable promise, specifically a promise with a `.cancel()` method, that method will be called when the `pTimeout` promise times out.
#### input
Type: `Promise`