object FutureUnlessShutdown
- Alphabetic
- By Inheritance
- FutureUnlessShutdown
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val abortedDueToShutdown: FutureUnlessShutdown[Nothing]
Immediately report UnlessShutdown.AbortedDueToShutdown
- def apply[A](x: Future[UnlessShutdown[A]]): FutureUnlessShutdown[A]
Close the type abstraction of FutureUnlessShutdown
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def delegate[T](body: => FutureUnlessShutdown[T])(implicit ec: ExecutionContext): FutureUnlessShutdown[T]
Analog to scala.concurrent.Future
.delegate
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failOnShutdownToAbortExceptionK(action: String)(implicit ec: ExecutionContext): ~>[FutureUnlessShutdown, Future]
- def failed[A](ex: Throwable): FutureUnlessShutdown[A]
Analog to scala.concurrent.Future
.failed
- def fromTry[T](result: Try[T]): FutureUnlessShutdown[T]
Analog to scala.concurrent.Future
.fromTry
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lift[A](x: UnlessShutdown[A]): FutureUnlessShutdown[A]
- def liftK: ~>[UnlessShutdown, FutureUnlessShutdown]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def never: FutureUnlessShutdown[Nothing]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def outcomeF[A](f: Future[A])(implicit ec: ExecutionContext): FutureUnlessShutdown[A]
Wraps the result of a scala.concurrent.Future into an UnlessShutdown.Outcome
- def outcomeK(implicit ec: ExecutionContext): ~>[Future, FutureUnlessShutdown]
outcomeF as a cats.arrow.FunctionK to be used with Cat's
mapK
operation.outcomeF as a cats.arrow.FunctionK to be used with Cat's
mapK
operation.Can be used to switch from scala.concurrent.Future to FutureUnlessShutdown inside another functor/applicative/monad such as cats.data.EitherT via
eitherT.mapK(outcomeK)
. - def pure[A](x: A): FutureUnlessShutdown[A]
Analog to scala.concurrent.Future
.successful
- def recoverFromAbortException[V](f: Future[V])(implicit ec: ExecutionContext): FutureUnlessShutdown[V]
Transforms a future from FutureUnlessShutdownImpl.Ops.failOnShutdownToAbortException back to FutureUnlessShutdown.
- def recoverFromAbortExceptionK(implicit ec: ExecutionContext): ~>[Future, FutureUnlessShutdown]
- def sequence[A, CC[X] <: IterableOnce[X], To](in: CC[FutureUnlessShutdown[A]])(implicit bf: BuildFrom[CC[FutureUnlessShutdown[A]], A, To], ec: ExecutionContext): FutureUnlessShutdown[To]
Analog to scala.concurrent.Future
.sequence
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val unit: FutureUnlessShutdown[Unit]
Analog to scala.concurrent.Future
.unit
- 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])
- def wrap[A](x: => A): FutureUnlessShutdown[A]
Analog to Future.apply without the overhead that handles an exception of
x
as a failed future.