type Shared
A value shared between tasks without copying: Arc<frozen T> (§10.4).
Example:
fn main() io {
let table: Shared<List<i64>> = freeze([1, 2, 3])
let again = table.clone()
print("{again.len()}")
}Output
3
pub(api) type Shared<T> = Arc<frozen T>Thread safety. immutable, so safe to read from many tasks.
Since. 1.0.0-beta
Defined in: std/core/types.oxl:459