• hubobes@sh.itjust.works
    link
    fedilink
    arrow-up
    82
    ·
    9 months ago

    If you are waiting for IO, why would you block your current thread and not let it do something else? Async does not only exist in JS.

    • SorryQuick@lemmy.ca
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      9 months ago

      I think they’re talking about the async/await syntax that’s common now in high level languages. Like, what’s the difference between that, or using actual threads? The only advantage I see is that it’s significantly easier/faster to use hence why it’s popular with languages like JS.