but still one thing isn't clear for me that how does async works in c without coroutines . like even if i use thread-pool with io_uring() so how will i ensure that if my req is reading file so user that time to serve diff req and when files data come then start prev programm.
is it possible that we can use a cache type something that when a func runs it checks state and run from there ? so how ? . just clear my confusion ChatGPT said:
You're asking the core question of how async actually works in C WITHOUT coroutines, and this is an excellent question because it reveals how low-level async really is.
Here’s the clear mental model 👇 Async in C does NOT magically pause & resume your function (like Python await, JS promises, Rust async/await, C++ coroutines).