ZIOInteropExtensions

works.iterative.ui.components.laminar.ZIOInteropExtensions

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def toZIOObserver[A, R](effect: A => ZIO[R, Nothing, Unit])(using runtime: Runtime[R]): Observer[A]
def zioToEventStream[R, E, A](effect: ZIO[R, E, A])(using runtime: Runtime[R])(using ev: IsSubtypeOfError[E, Throwable]): EventStream[A]

Extensions

Extensions

extension (e: L.EventStream.type)
def fromZIO[R, E, A](effect: ZIO[R, E, A])(using runtime: Runtime[R])(using ev: IsSubtypeOfError[E, Throwable]): EventStream[A]
def fromZIOOpt[R, E, A](effect: ZIO[R, E, Option[A]])(using runtime: Runtime[R])(using ev: IsSubtypeOfError[E, Throwable]): EventStream[A]
extension [R, E, O](effect: ZIO[R, E, O])
def computableUpdate(using ev: IsSubtypeOfError[E, UserMessage]): ZIO[R, Nothing, Update[O]]
def toEventStream(using runtime: Runtime[R])(using ev: IsSubtypeOfError[E, Throwable]): EventStream[O]
def toEventStreamWith(mapError: E => Throwable)(using runtime: Runtime[R]): EventStream[O]
extension (o: L.Observer.type)
def fromZIO[A, R](effect: A => ZIO[R, Nothing, Unit])(using runtime: Runtime[R]): Observer[A]