Skip to content

Commit e46f229

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 081709d commit e46f229

File tree

5 files changed

+130
-128
lines changed

5 files changed

+130
-128
lines changed

0 commit comments

Comments
 (0)