Closed stepan-romankov closed 2 years ago
@soulmachine fixed
Hi Stephan, your're is correct, spawn_blocking
should be used here.
tokio::task::spawn()
is for async operations while tokio::task::spawn_blocking()
is intended for non-async operations. In the move
code block there is no async operation.
See https://github.com/crypto-crawler/crypto-crawler-rs/issues/27