Packages

t

dev.rpeters.fs2.es.data

TryableDeferredMap

sealed trait TryableDeferredMap[F[_], K, V] extends DeferredMap[F, K, V, TryableDeferred[F, V]]

An extension of DeferredMap that supports checking the status of elements.

Linear Supertypes
DeferredMap[F, K, V, TryableDeferred[F, V]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TryableDeferredMap
  2. DeferredMap
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def add(k: K)(d: TryableDeferred[F, V]): 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.

    Definition Classes
    DeferredMap
  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.

    Definition Classes
    DeferredMap
  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.

    Definition Classes
    DeferredMap
  4. abstract def checkCompleted(k: K): F[Option[Boolean]]

    None if the key does not currently exist, Some(true) if completed, Some(false) if incomplete.

  5. 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.

    Definition Classes
    DeferredMap
  6. abstract def delIfComplete(k: K): F[Option[Boolean]]

    Remove a value from this map only if it has been completed.

    Remove a value from this map only if it has been completed. Result is whether the operation is successful.

  7. abstract def delIfIncomplete(k: K): F[Option[Boolean]]

    Remove a value from this map only if its deferred has not been completed.

    Remove a value from this map only if its deferred has not been completed. Result is whether or not the operation is successful.

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

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

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

    Definition Classes
    DeferredMap
  9. abstract def getDeferred(k: K): F[TryableDeferred[F, V]]

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

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

    Definition Classes
    DeferredMap
  10. abstract def getDeferredOpt(k: K): F[Option[TryableDeferred[F, V]]]

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

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

    Definition Classes
    DeferredMap
  11. abstract def getDeferredOrAdd(k: K)(d: TryableDeferred[F, V]): F[TryableDeferred[F, V]]

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

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

    Definition Classes
    DeferredMap
  12. 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.

    Definition Classes
    DeferredMap
  13. abstract def getOrAdd(k: K)(d: TryableDeferred[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 deferred will be awaited and added to the map immediately.

    Definition Classes
    DeferredMap
  14. 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.

    Definition Classes
    DeferredMap
  15. 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.

    Definition Classes
    DeferredMap
  16. abstract def tryGet(k: K): F[Option[V]]

    Returns the current value only if the key exists and it has been completed

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 DeferredMap[F, K, V, TryableDeferred[F, V]]

Inherited from AnyRef

Inherited from Any

Ungrouped