API reference for ref.
Ref[A]: a mutable cell that fibers can share.
Ref[A]
Every operation runs in a single fiber step, and a scheduler runs one step at a time, so each operation is atomic. The *_some operations take a function returning an Option: None leaves the value as it is.
*_some
Option
None
On This Page