We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 592cfd3 commit f51a9aeCopy full SHA for f51a9ae
lib/timekeeper.js
@@ -195,10 +195,15 @@
195
}
196
// If callback is async function
197
if (typeof Promise !== 'undefined' && result instanceof Promise) {
198
- result.finally(function() {
199
- // Reset
200
- timekeeper.reset();
201
- });
+ result
+ .then(function() {
+ // Reset
+ timekeeper.reset();
202
+ })
203
+ .catch(function() {
204
205
206
+ });
207
return result;
208
} else {
209
// Reset
0 commit comments