Stopper

object Stopper

Companion object to Stopper that holds a factory method that produces a new Stopper whose stopRequested method returns false until after its requestStop has been invoked.

Companion:
class
class Object
trait Matchable
class Any
Stopper.type

Value members

Concrete methods

Factory method that produces a new Stopper whose stopRequested method returns false until after its requestStop has been invoked.

Factory method that produces a new Stopper whose stopRequested method returns false until after its requestStop has been invoked.

The Stopper returned by this method can be safely used by multiple threads concurrently.

Returns:

a new default stopper