Skip to content

Commit 8a05edf

Browse files
authored
Update promise-timeout.js
1 parent a845c31 commit 8a05edf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/lib/promise-timeout.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// @flow
22

3-
export function promiseTimeout(ms: number, promise: Promise<any>): Promise<any> {
3+
export function promiseTimeout(
4+
ms: number,
5+
promise: Promise<any>,
6+
): Promise<any> {
47
return new Promise(function(resolve, reject) {
58
// create a timeout to reject promise if not resolved
69
let timer = setTimeout(function() {

0 commit comments

Comments
 (0)