Signaller

ammonite.repl.Signaller
See theSignaller companion object
case class Signaller(sigStr: String)(f: => Unit) extends Scoped

Lets you turn on signal handling within a certain block, attaching a callback to the handler and then turning it properly off again when the block exits. Does sketchy unsafe stuff because that's the only way you can make it properly reset when you're finished.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Scoped
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply[T](t: => T): T

Inherited methods

def flatMap[T](t: Unit => T): T

Attributes

Inherited from:
Scoped
def foreach[T](t: Unit => T): T

Attributes

Inherited from:
Scoped
def map[T](t: Unit => T): T

Attributes

Inherited from:
Scoped
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product