3 ms·
In several projects I switched from async code to threads and mpsc queues. Timers, data streams, external communications all run in their threads. They pass the
by nurettin 2y ago
In several projects I switched from async code to threads and mpsc queues. Timers, data streams, external communications all run in their threads. They pass their messages to the main thread's queue. The entire thing suddenly became much easier to reason about and read.