libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.
Real goal: I want to implement event loop in wasi and use webassembly as serverless runtime (handling multiple http calls in the same invocation, aggregate / transform the response)
Is there a way I can use this? What would you suggest the approach would be, to port this to a wasi runtime? Like porting to Spin (fermyon) for instance
Real goal: I want to implement event loop in wasi and use webassembly as serverless runtime (handling multiple http calls in the same invocation, aggregate / transform the response)
Is there a way I can use this? What would you suggest the approach would be, to port this to a wasi runtime? Like porting to Spin (fermyon) for instance