Closed lewazo closed 5 months ago
This uses tokio::task::spawn_blocking to start the background tasks in tokio's thread pool meant for code that's blocking.
tokio::task::spawn_blocking
The queue poller remains an async task, but will spawn new threads as soon as messages come.
This also extracts the code related to the poller out of main.
This uses
tokio::task::spawn_blocking
to start the background tasks in tokio's thread pool meant for code that's blocking.The queue poller remains an async task, but will spawn new threads as soon as messages come.
This also extracts the code related to the poller out of main.