class PromiseUnlessShutdown[A] extends Promise[UnlessShutdown[A]] with RunOnShutdown
A wrapper for Promise that provides supervision of uncompleted promise's futures and aborting a promise due to shutdown
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PromiseUnlessShutdown
- RunOnShutdown
- Promise
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new PromiseUnlessShutdown(description: String, futureSupervisor: FutureSupervisor, logAfter: Duration = 10.seconds, logLevel: Level = Level.DEBUG)(implicit ecl: ErrorLoggingContext, ec: ExecutionContext)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def complete(result: Try[UnlessShutdown[A]]): PromiseUnlessShutdown.this.type
- Definition Classes
- Promise
- def completeWith(other: FutureUnlessShutdown[A]): PromiseUnlessShutdown.this.type
- def completeWith(other: Future[UnlessShutdown[A]]): PromiseUnlessShutdown.this.type
- Definition Classes
- Promise
- def done: Boolean
true if the task has already run (maybe elsewhere)
true if the task has already run (maybe elsewhere)
- Definition Classes
- PromiseUnlessShutdown → RunOnShutdown
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failure(cause: Throwable): PromiseUnlessShutdown.this.type
- Definition Classes
- Promise
- def future: Future[UnlessShutdown[A]]
- Definition Classes
- PromiseUnlessShutdown → Promise
- def futureUS: FutureUnlessShutdown[A]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def isCompleted: Boolean
- Definition Classes
- PromiseUnlessShutdown → Promise
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def name: String
the name, used for logging during shutdown
the name, used for logging during shutdown
- Definition Classes
- PromiseUnlessShutdown → RunOnShutdown
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def outcome(value: A): Unit
Complete the promise with an outcome value.
Complete the promise with an outcome value. If the promise has already been completed with an outcome, the new outcome will be ignored.
- def run(): Unit
invoked by [FlagCloseable] during shutdown
invoked by [FlagCloseable] during shutdown
- Definition Classes
- PromiseUnlessShutdown → RunOnShutdown
- def shutdown(): Unit
Complete the promise with a shutdown
- def success(value: UnlessShutdown[A]): PromiseUnlessShutdown.this.type
- Definition Classes
- Promise
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryComplete(result: Try[UnlessShutdown[A]]): Boolean
- Definition Classes
- PromiseUnlessShutdown → Promise
- def tryFailure(cause: Throwable): Boolean
- Definition Classes
- Promise
- def trySuccess(value: UnlessShutdown[A]): Boolean
- Definition Classes
- Promise
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated
- final def tryCompleteWith(other: Future[UnlessShutdown[A]]): PromiseUnlessShutdown.this.type
- Definition Classes
- Promise
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Since this method is semantically equivalent to
completeWith
, use that instead.