Skip to content

Commit 03aac5f

Browse files
committed
integrate feedback
we can't fix then, but we can replace it. instead of using immediately invoked anonymous asynchronous arrow functions, we can replace the then method with then-like helper functions. In fact, we can optimize these small helpers to the exact cases we need. = after() => helper with only onFulfilled callback = catchAfter => helper with onError callback that handles promise rejection = tryAfter => helper with synchronous onFulfilled callback and onError callback that handles promise rejection and onFulfilled exceptions
1 parent 8a62471 commit 03aac5f

File tree

5 files changed

+130
-128
lines changed

5 files changed

+130
-128
lines changed

0 commit comments

Comments
 (0)