Expand description
Shared ownership wrappers with fallible, non-panicking access.
Shared is single threaded, AsyncShared is the thread safe
counterpart. Both return None instead of panicking when the value is
already borrowed. A script runtime has to report such an error, not abort
the host.
Structsยง
- Async
Shared - Thread safe shared value, a thin wrapper over
Arc<RwLock<T>>. - Shared
- Single threaded shared value, a thin wrapper over
Rc<RefCell<T>>.