This has been a major pain for me in JavaScript, but only a minor bump in Rust. I presume any language that has threads can deal with this.
Rust’s async executors have spawn(blocking_code) that turns sync code into async code, and block_on(async {code}) that turns async code into sync code. So if I get a wrong-color function somewhere, I can work around that.
This has been a major pain for me in JavaScript, but only a minor bump in Rust. I presume any language that has threads can deal with this.
Rust’s async executors have
spawn(blocking_code)
that turns sync code into async code, andblock_on(async {code})
that turns async code into sync code. So if I get a wrong-color function somewhere, I can work around that.