Skip to content

Commit f1fa56a

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 e342c57 commit f1fa56a

File tree

5 files changed

+130
-128
lines changed

5 files changed

+130
-128
lines changed

0 commit comments

Comments
 (0)