Single-shot value envelope. Holds a value until exactly one consumer calls Consumable.consume; subsequent reads return undefined.
undefined
Wrap value. If value is already a Consumable, returns it unchanged so the type stays flat.
value
Consumable
true once Consumable.consume has been called.
true
Take ownership of the wrapped value. The next call returns undefined. Use this when the value is about to be acted on exactly once.
Read the wrapped value without consuming it. undefined once consumed.
Single-shot value envelope. Holds a value until exactly one consumer calls Consumable.consume; subsequent reads return
undefined.