Skip to content

Commit

Permalink
fix(eventual-send): silence unhandled rejection for remote calls
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Sep 25, 2020
1 parent 56a0763 commit fb7c247
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eventual-send/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ export function makeHandledPromise() {
.catch(lose);
});

// Workaround for Node.js: silence "Unhandled Rejection" by default when
// using the static methods.
returnedP.catch(_ => {});

// We return a handled promise with the default unsettled handler.
// This prevents a race between the above Promise.resolves and
// pipelining.
Expand Down

0 comments on commit fb7c247

Please sign in to comment.