A Pyhton port of Haskell's Control.Concurrent.MVar.
This implementation blocks on get if the MVar is empty, and on put if the MVar is not empty.
A MVar is a mutable location which can either be empty, or contain a value. The location can be written to and read from safely from multiple concurrent python threads.
pip3 install mvar
A brief example with 3 threads and one MVar is available in example
Copyright 2018 Gabriele Baldoni