• vrighter@discuss.tchncs.de
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      1 year ago

      not really. first of all async in not the same as threading. And even then, while it makes parallel code easier to write (not easier to reason about), it still has the exact same footguns as anything else, as soon as you venture away from having only one consumer for every producer. Synchronization is still all on you

    • wim@lemmy.sdf.org
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      That’s a whole different thing to me. That’s not async, that’s channels and multithreading.

      I do that in Rust as well with mcsp channels and it’s been fine.

      It’s the async/await bit that I find incredibly akward all the time.