async-mutex is a spin off from 6502.ts that I created to
synchronize operations that involve multiple communications with a web worker.
The library provides you with
Semaphore objects that allow you
to serialize operations that span multiple thunks on the event loop.