Once-only initialization.

See also:

Static methods

@:noExprstaticinit():Result<Once>

Allocates and initializes a once-only barrier.

@:noExprstaticonce(this:Once, callback:() ‑> Void):Void

Guards the given callback to be called only once.