Created
November 26, 2018 05:09
-
-
Save graup/bfbc5c1036724300e7bd12ae7f77c371 to your computer and use it in GitHub Desktop.
Revisions
-
graup created this gist
Nov 26, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ try { const result = await timedAsync(originalAsyncFunction, { slow: () => { console.log('operation is slow and still going on'): }, fast: () => { console.log('operation finished quickly'): } }); } catch (e) { console.log('operation threw an exception'); }