Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(napi): no panic when caller stops listening (#2010)
This fix is similar to the one in 5b5f616. In both the then_callback & catch_callback, expect was being called in case the send failed. This means that if we call a function that returns a promise and the received gets closed (the calling thread stopped at the wrong time), this will panic. In such scenarios, it is fine not to panic. If the receiver doesn't care about the output, we should just let it be.
- Loading branch information