Packages

object Cancelable extends Serializable

Source
Cancelable.scala
Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cancelable
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Empty extends Cancelable with IsDummy

    Interface for cancelables that are empty or already canceled.

  2. trait IsDummy extends AnyRef

    Marker for cancelables that are dummies that can be ignored.

Value Members

  1. def apply(callback: () => Unit): Cancelable

    Builds a Cancelable that executes the given callback when calling cancel.

  2. def apply(): Cancelable

    Builds a Cancelable.

  3. def cancelAll(seq: Iterable[Cancelable]): Unit

    Given a collection of cancelables, cancel them all.

    Given a collection of cancelables, cancel them all.

    This function collects non-fatal exceptions and throws them all at the end as a composite, in a platform specific way:

    • for the JVM "Suppressed Exceptions" are used
    • for JS they are wrapped in a CompositeException
  4. def collection(seq: Iterable[Cancelable]): Cancelable

    Builds a Cancelable reference from a sequence, cancelling everything on cancel.

  5. def collection(refs: Cancelable*): Cancelable

    Builds a Cancelable reference from a sequence, cancelling everything on cancel.

  6. val empty: Cancelable

    Returns a dummy Cancelable that doesn't do anything.

  7. def fromPromise[A](p: Promise[A], e: Throwable): Cancelable

    Builds a Cancelable out of a Scala Promise, completing the promise with the given Throwable on cancel.

  8. def trampolined(seq: Iterable[Cancelable])(implicit s: Scheduler): Cancelable

    Wraps a collection of cancelable references into a Cancelable that will cancel them all by triggering a trampolined async boundary first, in order to prevent stack overflows.

  9. def trampolined(refs: Cancelable*)(implicit s: Scheduler): Cancelable

    Wraps a collection of cancelable references into a Cancelable that will cancel them all by triggering a trampolined async boundary first, in order to prevent stack overflows.