3 ms·
That is such absurd hyperbole. Just because I can wrap an async function call in 10 lines of runtime-specific boilerplate doesn't make the function color proble
by stefan_ 6y ago
That is such absurd hyperbole. Just because I can wrap an async function call in 10 lines of runtime-specific boilerplate doesn't make the function color problem any less annoying.
- MaulingMonkey 6y ago10 lines is fairly annoying. Fortunately, the color change bit alone is just 1 line - and you can mix runtimes, although the wisdom of doing so is questionable. println!("{}", futures::executor::block_on(library::read()).unwrap()); https://github.com/MaulingMonkey/untokio/blob/892fab053b4f6d26929a2aba71be751f9195630b/examples/example1.rs#L10 https://github.com/MaulingMonkey/untokio/blob/892fab053b4f6d...
- auganov 6y agoIt stops unnecessary pollution when dealing with code you cannot control. Often you couldn't care less about the asynchronicity of some calls. Sometimes it's not even obvious why some things are async at all. You're forced to make your code async even when it was never meant to be async as per your mental model.