ChannelClosedUnion

ox.channels.ChannelClosedUnion

Extension methods on union types which includes ChannelClosed.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension [T](v: T | ChannelClosed)
inline def isValue: Boolean
inline def map[U](f: T => U): U | ChannelClosed
inline def orThrow: T

Throw a ChannelClosedException if the provided value represents a closed channel (one of ChannelClosed values).

Throw a ChannelClosedException if the provided value represents a closed channel (one of ChannelClosed values).

Attributes

inline def toEither: Either[ChannelClosed, T]
inline def toTry: Try[T]
extension [T](v: T | Error)(using DummyImplicit)
inline def mapUnlessError[U](f: T => U): U | Error