Module sync/once
sync/once
One-time initialization primitive.
Example
{ Once } :: import "std/sync/once";
init := Once.new();
// Only the first call executes the function
init.call(() => {
println("initialized!");
});
init.call(() => {
println("this will NOT run");
});