swc_core::ecma::atoms::once_cell

Module unsync

Available on crate features __ecma and ecma_ast only.
Expand description

Single-threaded version of OnceCell.

Structsยง

  • A value which is initialized on the first access.
  • A cell which can be written to only once. It is not thread safe.