4 ms·
If you wanted each function to wait for IO or an event without blocking a thread you need an event loop, or one thread per function that needs to block to wait
by justsomeuser 6y ago
If you wanted each function to wait for IO or an event without blocking a thread you need an event loop, or one thread per function that needs to block to wait on incoming events.
- arethuza 6y agoWell, I guess that is possible but I've never seen multithreaded server side code (in a thread per request type environment) bother - database calls or other IO just block the current thread.