Skip to main content

SHARED_OF

Constant SHARED_OF 

Source
pub const SHARED_OF: FreeBuiltinSchema;
Expand description

Shared(value: T) -> Shared<T>.

This is the one constructor that can refuse its payload: what a Shared wraps is reachable from every task it is given to, so it must be able to cross a task boundary. That rule is not in this table — it is about what a type is, not what a call takes — so the checker and the runtime each enforce it with what they have, a type and a value.