scalax.concurrent

cancelables

package cancelables

Cancelables represent asynchronous units of work or other things scheduled for execution and whose execution can be canceled.

One use-case is the scheduling done by scalax.concurrent.Scheduler, in which the scheduling methods return a Cancelable, allowing the canceling of the scheduling.

Example:

val s = ConcurrentScheduler()
val task = s.scheduleRepeated(10.seconds, 50.seconds, {
  println("Hello")
})

// later, cancels the scheduling ...
task.cancel()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. cancelables
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait AssignableCancelable extends BooleanCancelable

    Represents a class of cancelables that can hold an internal reference to another cancelable (and thus has to support the assignment operator).

  2. trait BooleanCancelable extends Cancelable

    Represents a Cancelable that can queried for the canceled status.

  3. trait CompositeCancelable extends BooleanCancelable

    Represents a composite of multiple cancelables.

  4. final class MultiAssignmentCancelable extends AssignableCancelable

    Represents a scalax.concurrent.Cancelable whose underlying cancelable reference can be swapped for another.

  5. final class RefCountCancelable extends BooleanCancelable

    Represents a Cancelable that only executes the canceling logic when all dependent cancelable objects have been canceled.

  6. final class SerialCancelable extends BooleanCancelable

    Represents a scalax.concurrent.Cancelable whose underlying cancelable can be swapped for another cancelable which causes the previous underlying cancelable to be canceled.

  7. final class SingleAssignmentCancelable extends AssignableCancelable

    Represents a scalax.concurrent.Cancelable that can be assigned only once to another cancelable reference.

Inherited from AnyRef

Inherited from Any

Ungrouped