DEV Community

Discussion on: Are async frameworks really worth it?

Collapse
 
tbodt profile image
tbodt

Async thingies don't just have a loop that constantly checks whether something has happened. They use a special system call to wait for any number of things at the same time (poll, select, epoll).

Collapse
 
idanarye profile image
Idan Arye • Edited

That's hardly the point here. You can use that "special system call" to wait for events even without an async framework, and if you have no choice but to constantly check a condition - you can still incorporate that into an async framework (I think that's what tokio-inotify does)