Module coil-stdlib

cell

Lambdas, defer blocks and tasks capture copies of locals. Put state that several of them must update in a Ref.

Part of coil-stdlib. spool projects get it automatically; with plain coil, pass --root ~/.coil/stdlib/src.

Import what you use (use path::* is not allowed):

use cell::{Ref};

Types#

NameDescription
RefA shared, mutable box holding one T.
↑ ↓ navigate ↵ open