Packages

implicit final class RefOps[F[_], A] extends AnyVal

Source
Ref.scala
Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RefOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RefOps(ref: Ref[F, A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def modifyMaybe[B](f: (A) => Option[(A, B)])(implicit F: Monad[F]): F[Option[B]]

    Like modify, but can terminate early without retrying.

    Like modify, but can terminate early without retrying. Returns an optional value if the update completed.

  8. def modifyOr[E, B](f: (A) => Either[E, (A, B)])(implicit F: Monad[F]): F[Either[E, B]]

    Like modify, but can terminate early with an error value without retrying.

    Like modify, but can terminate early with an error value without retrying. Returns a value or error based on whether the update short-circuited.

  9. def toString(): String
    Definition Classes
    Any
  10. def updateMaybe(f: (A) => Option[A])(implicit F: Monad[F]): F[Boolean]

    Like update, but can terminate early without retrying.

    Like update, but can terminate early without retrying. Returns whether or not the update short-circuited.

  11. def updateOr[E](f: (A) => Either[E, A])(implicit F: Monad[F]): F[Option[E]]

    Like update, but can terminate early with an error value without retrying.

    Like update, but can terminate early with an error value without retrying. Returns an optional error if the update short-circuited.

Inherited from AnyVal

Inherited from Any

Ungrouped