Get the latest tech news

Asynchrony is not concurrency


Yes I know about that one talk from Rob Pike.

I won’t get into the weeds of a stackless coroutines implementation, but the core principle is the exact same: designing a yielding primitive that lets you switch tasks. In this case the two different calls to saveData can be scheduled concurrently because they are asynchronous to one another, and the fact that they don’t express any internal asynchrony does not compromise the execution model. This documents in the code that concurrency is required for correctness, which will also let the program error out when attempting to run it over a non-concurrent Io implementation.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of concurrency

concurrency

Photo of Asynchrony

Asynchrony

Related news:

News photo

Atomics and Concurrency

News photo

Concurrency in Haskell: Fast, Simple, Correct

News photo

Par: Process language with an interactive playground for exploring concurrency