turbolift.mode.Mode.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of turbolift-core_3 Show documentation
Show all versions of turbolift-core_3 Show documentation
Algebraic Effects for Scala 3
The newest version!
package turbolift.mode
final case class Mode(multiThreaded: Boolean)
object Mode:
val default: Mode = MT
/** Import this, to `run` computations in multi-threaded mode (default). */
given MT: Mode = Mode(true)
/** Import this, to `run` computations in single-threaded mode. */
given ST: Mode = Mode(false)