Module once_cell::race[][src]

Expand description

Thread-safe, non-blocking, “first one wins” flavor of OnceCell.

If two threads race to initialize a type from the race module, they don’t block, execute initialization function together, but only one of them stores the result.

This module does not require std feature.

Structs

A thread-safe cell which can be written to only once.

A thread-safe cell which can be written to only once.

A thread-safe cell which can be written to only once.