1. 17
  1. 1

    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.

    Stories with similar links:

    1. What Color is Your Function? via tel 8 years ago | 11 points | no comments