Interrupt

com.reactific.riddl.utils.Interrupt
See theInterrupt companion object
final class Interrupt extends () => Boolean

Attributes

Companion
object
Graph
Supertypes
trait () => Boolean
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

case class CancelledOrLate(that: Interrupt) extends State

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Show all
case object NotStarted extends State

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Show all
Self type
NotStarted.type
case class Started(onThread: Thread) extends State

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Show all
sealed trait State

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NotStarted.type
class Started

Value members

Concrete methods

override def apply(): Boolean

This is the signal to cancel the execution of the logic.

This is the signal to cancel the execution of the logic. Returns whether the cancellation signal was successully issued or not.

Attributes

Definition Classes
def cancel: Unit
def interruptibly[T](block: => T): T

Executes the supplied block of code and returns the result.

Executes the supplied block of code and returns the result. Throws CancellationException if the block was interrupted.

Attributes

def ready: Boolean

Inherited methods

override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function0 -> Any
Inherited from:
Function0