OxL Reference

fn valueOf

Type witness: the value type of a chain, without evaluating it (the generated code never calls it).

Example:

oxl✓ checked in CI
use std.saga

fn typeOnly(t: Task<i64, ()>) -> i64 {
  saga.valueOf(t)
}
pub(api) fn valueOf<V, E>(t: Task<V, E>) -> V

Since. 1.0.0-beta

Parameters

NameType
tTask<V, E>

Returns

V

Effects

none declared (pure unless the body says otherwise)

Defined in: std/saga/saga.oxl:1184

See also