Packages

sealed trait DeferredMap[F[_], K, V, D <: Deferred[F, V]] extends AnyRef

A map with values that may or may not be completed

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DeferredMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def add(k: K)(d: D): F[Unit]

    Add a value to this map that may be completed later.

    Add a value to this map that may be completed later. If this key is already being awaited by another Deferred, it will attempt to complete the value silently.

  2. abstract def addF(k: K)(f: F[V]): F[Unit]

    Add a value to this map once a given F completes.

    Add a value to this map once a given F completes. If this key is already being awaited, it will attempt to complete the value silently.

  3. abstract def addPure(k: K)(v: V): F[Unit]

    Add a pure value to this map that is pre-completed.

    Add a pure value to this map that is pre-completed. If this key is being awaited, it will attempt to complete the deferred upon insert silently.

  4. abstract def del(k: K): F[Boolean]

    Remove a value from this map.

    Remove a value from this map. Result is whether or not the key was valid.

  5. abstract def get(k: K): F[V]

    Get the value for a given key asynchronously once it is available.

  6. abstract def getDeferred(k: K): F[D]

    Get a Deferred that completes when the requested value is available.

  7. abstract def getDeferredOpt(k: K): F[Option[D]]

    Get a Deferred that completes when the requested value is available if the given key currently exists.

  8. abstract def getDeferredOrAdd(k: K)(d: D): F[D]

    Like getDeferred, but if the given key does not exist the provided Deferred is added/returned.

  9. abstract def getOpt(k: K): F[Option[V]]

    Get the value for a given key asynchronously only if the key currently exists.

    Get the value for a given key asynchronously only if the key currently exists. This means if a value is currently being awaited, you will eventually receive Some value. Otherwise, it will immediately return None.

  10. abstract def getOrAdd(k: K)(d: D): F[V]

    If the given key exists, await its final value.

    If the given key exists, await its final value. Otherwise, the provided deferred will be awaited and added to the map immediately.

  11. abstract def getOrAddF(k: K)(f: F[V]): F[V]

    If the given key exists, await its final value.

    If the given key exists, await its final value. Otherwise, the provided effect will be evaluated to obtain that value. A Deferred is created internally so that the result can be awaited as it is evaluated.

  12. abstract def getOrAddPure(k: K)(v: V): F[V]

    If the given key exists, await its final value.

    If the given key exists, await its final value. Otherwise, the provided pure value v will be added to the map.

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() @HotSpotIntrinsicCandidate()
  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() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  18. 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
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped