monifu.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 monifu.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 CompositeCancelable extends Cancelable

    Represents a composite of multiple cancelables.

  2. final class MultiAssignmentCancelable extends Cancelable

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

  3. final class RefCountCancelable extends Cancelable

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

  4. final class SingleAssignmentCancelable extends Cancelable

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

Inherited from AnyRef

Inherited from Any

Ungrouped