9 files changed

+10
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const callbackCheck = () => {
1212
// Emulate asynchronous calls
1313

1414
const wrapAsync = fn => (...args) => setTimeout(
15-
() => fn(...args), Math.floor((Math.random() * 1000))
15+
() => fn(...args), Math.floor(Math.random() * 1000)
1616
);
1717

1818
// Asynchronous functions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Emulate asynchronous calls
66

77
const wrapAsync = fn => (...args) => setTimeout(
8-
() => fn(...args), Math.floor((Math.random() * 1000))
8+
() => fn(...args), Math.floor(Math.random() * 1000)
99
);
1010

1111
// Asynchronous functions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const data = {};
88
// Emulate asynchronous calls
99

1010
const wrapAsync = fn => (...args) => setTimeout(
11-
() => fn(...args), Math.floor((Math.random() * 1000))
11+
() => fn(...args), Math.floor(Math.random() * 1000)
1212
);
1313

1414
// Asynchronous functions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const chain = (prev = null) => {
3636
// Emulate asynchronous calls
3737

3838
const wrapAsync = fn => (...args) => setTimeout(
39-
() => fn(...args), Math.floor((Math.random() * 1000))
39+
() => fn(...args), Math.floor(Math.random() * 1000)
4040
);
4141

4242
// Asynchronous functions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Emulate asynchronous calls
44

55
const wrapAsync = callback => setTimeout(
6-
callback, Math.floor((Math.random() * 1000))
6+
callback, Math.floor(Math.random() * 1000)
77
);
88

99
const isWeekend = () => !(new Date().getDay() % 6);
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Emulate asynchronous calls
44

55
const wrapAsync = callback => setTimeout(
6-
callback, Math.floor((Math.random() * 1000))
6+
callback, Math.floor(Math.random() * 1000)
77
);
88

99
// Asynchronous functions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Emulate asynchronous calls
44

55
const wrapAsync = callback => setTimeout(
6-
callback, Math.floor((Math.random() * 1000))
6+
callback, Math.floor(Math.random() * 1000)
77
);
88

99
// Asynchronous functions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const ee = new EventEmitter();
66
// Emulate asynchronous calls
77

88
const wrapAsync = fn => (...args) => setTimeout(
9-
() => fn(...args), Math.floor((Math.random() * 1000))
9+
() => fn(...args), Math.floor(Math.random() * 1000)
1010
);
1111

1212
// Asynchronous functions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// Emulate Asynchronous calls
44

5-
const pause = () => new Promise((resolve) =>
6-
setTimeout(resolve, Math.floor((Math.random() * 1000)))
5+
const pause = () => new Promise(resolve =>
6+
setTimeout(resolve, Math.floor(Math.random() * 1000))
77
);
88

99
// Asynchronous functions

0 commit comments

Comments
 (0)