Open robobun opened 1 year ago
This feels more like a bug report than an enhancement to me. This is unexpected behaviour.
With Node FFI this is implemented by using async
to execute the function in a different thread. Is this behavior implemented in Bun aswell?
Hey, this is blocking us from adopting Bun in production at Replit :// ~Is async-ffi possible with napi
? (e.g. https://github.com/napi-rs/napi-rs)~
ended up achieving non-blocking FFI with napi-rs
+ async
Which is the eta or priority the bun team give to that?
Hi! How can I call FFI functions without blocking the main thread?
Library
Bun
The current behavior freezes the entire main thread of bun and I can't do anything else in bun while the
listen
function is running (infinitely).Originally reported on Discord:
Non blocking FFI