mitchellh / libxev

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.
MIT License
2.07k stars 74 forks source link

How to embed this in wasi #43

Open ravirajb opened 1 year ago

ravirajb commented 1 year ago

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