Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatePending = state(0) StateOk = state(1) )
Variables ¶
View Source
var (
ErrValue = errors.New("error: none or rejected value container")
)
View Source
var (
UnitVal = Unit{}
)
Functions ¶
Types ¶
type Future ¶
type Future[T any] interface { Poll() FutureResult[T] Await() T }
type FutureResult ¶
type FutureResult[T any] interface { Value[T] State() FutureState }
type FutureState ¶
type Option ¶
type Option[T any] interface { Value[T] None() Or(T) T OrWith(Value[T]) T Map(Pipe[T, T]) Option[T] And(Option[T]) Option[T] Has() bool }
func ToErrorOption ¶
Click to show internal directories.
Click to hide internal directories.