WithToggle

terminus.effect.WithToggle
trait WithToggle[+F <: Writer]

Utility trait for working with Toggle.

Attributes

Source
WithToggle.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
F

Members list

Value members

Concrete methods

protected def withToggle[A](toggle: Toggle)(f: F ?=> A): A

Use withToggle to ensure a toggle is turned on before f is evaluated, and turned off when f finishes.

Use withToggle to ensure a toggle is turned on before f is evaluated, and turned off when f finishes.

Attributes

Source
WithToggle.scala