Scoop API

scoop:scoop.core:0.1.0

contextOrNone

function contextOrNone

source · line 5
public
@Intrinsic("context_or_none")
public fun <T: ref> contextOrNone(): Option<T>

Returns the current task's binding for the exact type T, or None when it is absent. The lookup does not allocate, throw, or search for compatible subtypes.