monix.async

Task

object Task

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Task
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def amb[A](tasks: Task[A]*): Task[A]

    Creates a Task that upon execution will return the result of the first completed task in the given list and then cancel the rest.

  7. def apply[A](f: ⇒ A): Task[A]

    Returns a new task that, when executed, will emit the result of the given function executed asynchronously.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def create[A](register: (Callback[A], Scheduler) ⇒ Cancelable): Task[A]

    Create a Task from an asynchronous computation, which takes the form of a function with which we can register a callback.

    Create a Task from an asynchronous computation, which takes the form of a function with which we can register a callback. This can be used to translate from a callback-based API to a straightforward monadic version.

    register

    is a function that will be called when this Task is executed, receiving a callback as a parameter, a callback that the user is supposed to call in order to signal the desired outcome of this Task.

  11. def defer[A](task: ⇒ Task[A]): Task[A]

    Promote a non-strict value representing a Task to a Task of the same type.

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def error(ex: Throwable): Task[Nothing]

    Returns a task that on execution is always finishing in error emitting the specified exception.

  15. def eval[A](f: ⇒ A): Task[A]

    Promote a non-strict value to a Task, catching exceptions in the process.

    Promote a non-strict value to a Task, catching exceptions in the process.

    Note that since Task is not memoized, this will recompute the value each time the Task is executed.

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def firstCompletedOf[T](tasks: Task[T]*): Task[T]

    Creates a Task that upon execution will return the result of the first completed task in the given list and then cancel the rest.

    Creates a Task that upon execution will return the result of the first completed task in the given list and then cancel the rest.

    Alias for Task.amb.

  18. def fork[A](task: Task[A]): Task[A]

    Mirrors the given source Task, but upon execution it forks its evaluation off into a separate (logical) thread.

  19. def fromFuture[A](f: Future[A]): Task[A]

    Converts the given Scala Future into a Task.

    Converts the given Scala Future into a Task.

    NOTE: if you want to defer the creation of the future, use in combination with defer.

  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def map2[A, B, R](taskA: Task[A], taskB: Task[B])(f: (A, B) ⇒ R): Task[R]

    Given two tasks and a mapping function, returns a new Task that will be the result of the mapping function applied to their results.

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def now[A](elem: A): Task[A]

    Returns a Task that on execution is always successful, emitting the given strict value.

  28. def sequence[A, M[X] <: TraversableOnce[X]](in: M[Task[A]])(implicit cbf: CanBuildFrom[M[Task[A]], A, M[A]]): Task[M[A]]

    Transforms a TraversableOnce[Task[A]] into a Task[TraversableOnce[A]].

    Transforms a TraversableOnce[Task[A]] into a Task[TraversableOnce[A]]. Useful for reducing many Tasks into a single Task.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped