Add useful comment

This commit is contained in:
Tom Coleman 2022-09-12 17:26:43 +10:00
parent 6734525950
commit 274101c21c

View File

@ -503,7 +503,7 @@ export class Instrumenter {
try {
const res = arg(...args);
if (res instanceof Promise) {
willRestore = true;
willRestore = true; // We need to wait for the promise to finish before restoring
return res.finally(restore);
}
return res;