3 ms·
10 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
by MaulingMonkey 6y ago
10 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...