object CancelableFuture extends Serializable
- Source
- CancelableFuture.scala
- Alphabetic
- By Inheritance
- CancelableFuture
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply[T](underlying: Future[T], cancelable: Cancelable): CancelableFuture[T]
Builder for a CancelableFuture.
Builder for a CancelableFuture.
- underlying
is an underlying
Future
reference that will respond toonComplete
calls- cancelable
is a Cancelable that can be used to cancel the active computation
-
def
failed[T](ex: Throwable): CancelableFuture[T]
Promotes a strict
Throwable
to a CancelableFuture that's already complete. -
def
fromTry[T](value: Try[T]): CancelableFuture[T]
Promotes a strict
Try[T]
to a CancelableFuture that's already complete. -
final
def
never[T]: CancelableFuture[T]
Returns a CancelableFuture instance that will never complete.
-
def
successful[T](value: T): CancelableFuture[T]
Promotes a strict
value
to a CancelableFuture that's already complete. -
final
val
unit: CancelableFuture[Unit]
An already completed CancelableFuture.
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.types implements type-class shims, to be translated to type-classes provided by libraries such as Cats or Scalaz.
monix.cats is the optional integration with the Cats library, providing translations for the types described in
monix.types
.monix.scalaz is the optional integration with the Scalaz library, providing translations for the types described in
monix.types
.