3 ms·
async & tokio can be a problem. Rust is much nicer to work with without them. My take... I can see their use, but they should be confined to the outer layers o
by cmrdporcupine 4y ago
async & tokio can be a problem. Rust is much nicer to work with without them.
My take... I can see their use, but they should be confined to the outer layers of the onion.
Core components need not (should not) be written in this style.
async is just a function returning a promise.
Its convenience at the front end of the application shouldn't be allowed to cause distress at the lower levels.