napi-rs/crates
Louis 15521fb90f
fix(napi): no panic when caller stops listening (#2010)
This fix is similar to the one in 5b5f616d81.

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.
2024-03-22 22:03:19 +08:00
..
backend Release independent packages 2024-03-20 22:46:59 +08:00
build Release independent packages 2024-02-19 19:10:16 +08:00
macro Release independent packages 2024-03-20 22:46:59 +08:00
napi fix(napi): no panic when caller stops listening (#2010) 2024-03-22 22:03:19 +08:00
sys Release independent packages 2023-11-07 14:18:36 +08:00