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#
| Name | Description |
|---|---|
Ref | A shared, mutable box holding one T. |