OnceCell import { OnceCell } from "destack:sync"; One-time initialized cell. export class OnceCell { state: Atomic; value: MaybeUninit; get(): &readonly T | undefined; set(value: ^T): Result; getOrInit(init: () => T): &readonly T; take(): T | undefined; } language/library/src/sync/once.ds:23:49 Members state: Atomic The initialization state. value: MaybeUninit The stored value. get(): &readonly T | undefined Get the initialized value. set(value: ^T): Result Set the value once. getOrInit(init: () => T): &readonly T Get the value or initialize it. take(): T | undefined Move the value out when initialized.