Documentation

Concurrency.MVar

structure Concurrency.MVar (a : Type) :
Instances For
    def Concurrency.MVar.take {a : Type} [Inhabited a] (self : MVar a) :

    Returns the content of the MVar. If the MVar is currently empty, take will wait until it is fill. After a take, the MVar is left empty.

    Single-wakeup LIFO order

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Concurrency.MVar.put {a : Type} (self : MVar a) (value : a) :

      Put a value into the MVar. If the MVar is currently full, put will wait until it becomes empty.

      Single-wakeup FIFO order

      Equations
      Instances For
        def Concurrency.MVar.read {a : Type} [Inhabited a] (self : MVar a) :
        IO a
        Equations
        Instances For
          def Concurrency.MVar.read? {a : Type} (self : MVar a) :
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Concurrency.MVar.replace {a : Type} [Inhabited a] (self : MVar a) (value : a) :
            Equations
            Instances For