final class Ops[A, X <: PromiseUnlessShutdown[A]] extends AnyVal
Extension methods for PromiseUnlessShutdown
- X
Type parameter to make the type of
self
visible to the Scala compiler when it is more specific than PromiseUnlessShutdown[A]
, e.g., for methods returningself.type
.
- Alphabetic
- By Inheritance
- Ops
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Ops(self: X)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def completeWithUS(other: FutureUnlessShutdown[A]): X
Analog to scala.concurrent.Promise.completeWith
- def futureUS: FutureUnlessShutdown[A]
Analog to scala.concurrent.Promise.future
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def outcome(value: A): Boolean
Tries to complete the promise with
value
as a UnlessShutdown.Outcome.Tries to complete the promise with
value
as a UnlessShutdown.Outcome. Does nothing if the promise has already been completed.- returns
False if the promise has already been completed, or true otherwise.
- def outcome_(value: A): Unit
Tries to complete the promise with
value
as a UnlessShutdown.Outcome.Tries to complete the promise with
value
as a UnlessShutdown.Outcome. Does nothing if the promise has already been completed. - val self: X
- def shutdown(): Boolean
Tries to complete the promise with UnlessShutdown.AbortedDueToShutdown.
Tries to complete the promise with UnlessShutdown.AbortedDueToShutdown. Does nothing if the promise has already been completed.
- returns
False if the promise has already been completed, or true otherwise.
- def shutdown_(): Unit
Tries to complete the promise with UnlessShutdown.AbortedDueToShutdown.
Tries to complete the promise with UnlessShutdown.AbortedDueToShutdown. Does nothing if the promise has already been completed.
- def toString(): String
- Definition Classes
- Any
- def unwrap: Promise[UnlessShutdown[A]]
Open the type abstraction