GitHub user asukaminato0721 edited a discussion: How to design opendal c binding's async api
c users have some choices. The main problem is c doesn't have `async/await/yield` keyword. - use callback with libuv, libevent - Manual State Machines - Macro-based "Coroutines" / Protothreads (something like https://dunkels.com/adam/pt/ or modern version https://github.com/naasking/async.h) - Coroutine Libraries (https://github.com/semistrict/libcoro or https://github.com/hnes/libaco) all seems complicated... the async io part seems also complicated... --- Refer to https://github.com/apache/opendal/pull/6072 for more context. GitHub link: https://github.com/apache/opendal/discussions/6082 ---- This is an automatically sent email for dev@opendal.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@opendal.apache.org