DeferredSource

cats.effect.kernel.DeferredSource
See theDeferredSource companion object
trait DeferredSource[F[_], A] extends Serializable

Attributes

Companion:
object
Source:
Deferred.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
class Deferred[F, A]
class AsyncDeferred[F, A]

Members list

Concise view

Value members

Abstract methods

def get: F[A]

Obtains the value of the Deferred, or waits until it has been completed. The returned value may be canceled.

Obtains the value of the Deferred, or waits until it has been completed. The returned value may be canceled.

Attributes

Source:
Deferred.scala
def tryGet: F[Option[A]]

Obtains the current value of the Deferred, or None if it hasn't completed.

Obtains the current value of the Deferred, or None if it hasn't completed.

Attributes

Source:
Deferred.scala