Function once [src]

Alias for std.once.once

Prototype

pub fn once(comptime f: fn () void) Once(f)

Parameters

f: fn () void

Source

pub fn once(comptime f: fn () void) Once(f) { return Once(f){}; }