4 ms·
So we remove async/await from our async functions and add sync/block to our sync functions? :D
by k__ 8y ago
So we remove async/await from our async functions and add sync/block to our sync functions? :D
- pimeys 8y agoActually Tokio already has `blocking` implemented! https://docs.rs/tokio-threadpool/0.1/tokio_threadpool/fn.blocking.html https://docs.rs/tokio-threadpool/0.1/tokio_threadpool/fn.blo...