Packages

abstract class QVarSM[F[_], A, P] extends QVar[F, A]

Linear Supertypes
QVar[F, A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QVarSM
  2. QVar
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QVarSM()(implicit arg0: Monad[F])

Type Members

  1. type S = State[A, P]
    Attributes
    protected

Abstract Value Members

  1. abstract def await(p: P): F[A]
    Attributes
    protected
  2. abstract def complete(x: A, promise: P): F[Unit]
    Attributes
    protected
  3. abstract def get: F[S]
    Attributes
    protected
  4. abstract def modifyF[X](f: (S) ⇒ (S, F[X])): F[X]
    Attributes
    protected
  5. abstract def newPromise: F[P]
    Attributes
    protected
  6. abstract def onCancel(fa: F[A], fc: ⇒ F[Unit]): F[A]
    Attributes
    protected
  7. abstract def set(s: S): F[Unit]
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def isEmpty: F[Boolean]

    Returns true if the MVar is empty and can receive a put, or false otherwise.

    Returns true if the MVar is empty and can receive a put, or false otherwise.

    Note that due to concurrent tasks, logic built in terms of isEmpty is problematic.

    Definition Classes
    QVarSMQVar
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. def put(a: A): F[Unit]

    Fills the MVar if it is empty, or blocks (asynchronously) if the MVar is full, until the given value is next in line to be consumed on take.

    Fills the MVar if it is empty, or blocks (asynchronously) if the MVar is full, until the given value is next in line to be consumed on take.

    This operation is atomic.

    returns

    a task that on evaluation will complete when the put operation succeeds in filling the MVar, with the given value being next in line to be consumed

    Definition Classes
    QVarSMQVar
  16. def read: F[A]

    Tries reading the current value, or blocks (asynchronously) until there is a value available.

    Tries reading the current value, or blocks (asynchronously) until there is a value available.

    This operation is atomic.

    returns

    a task that on evaluation will be completed after a value has been read

    Definition Classes
    QVarSMQVar
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def take: F[A]

    Empties the MVar if full, returning the contained value, or blocks (asynchronously) until a value is available.

    Empties the MVar if full, returning the contained value, or blocks (asynchronously) until a value is available.

    This operation is atomic.

    returns

    a task that on evaluation will be completed after a value was retrieved

    Definition Classes
    QVarSMQVar
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from QVar[F, A]

Inherited from AnyRef

Inherited from Any

Ungrouped