MiniBIO

izumi.functional.bio.impl.MiniBIO
See theMiniBIO companion object
sealed trait MiniBIO[+E, +A]

A lightweight dependency-less implementation of the izumi.functional.bio.IO2 interface, analogous in purpose with cats.effect.kernel.SyncIO

Sync-only, not interruptible, not async. This is a very primitive effect type. Prefer ZIO or cats-bio in production.

This is safe to run in a synchronous environment, Use MiniBIO.autoRun to gain access to components polymorphic over izumi.functional.bio.IO2 in a synchronous environment.

 final class MyBIOClock[F[+_, +_]: IO2]() {
   val nanoTime: F[Nothing, Long] = IO2(System.nanoTime())
 }

 import MiniBIO.autoRun._

 val time: Long = new MyBIOClock().nanoTime
 println(time)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Fail[E]
class FlatMap[E, A, E1, B]
class Redeem[E, A, E1, B]
class Sync[E, A]

Members list

Value members

Concrete methods

final def run(): Uninterrupted[E, A]