1. 15
  1.  

  2. 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 5 years ago | 10 points | no comments