forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
18
Kha/Tools/linux_x64/std/eval/luv/Once.hx
Normal file
18
Kha/Tools/linux_x64/std/eval/luv/Once.hx
Normal file
@ -0,0 +1,18 @@
|
||||
package eval.luv;
|
||||
|
||||
/**
|
||||
Once-only initialization.
|
||||
|
||||
@see https://aantron.github.io/luv/luv/Luv/Once
|
||||
**/
|
||||
@:coreType abstract Once {
|
||||
/**
|
||||
Allocates and initializes a once-only barrier.
|
||||
**/
|
||||
static public function init():Result<Once>;
|
||||
|
||||
/**
|
||||
Guards the given callback to be called only once.
|
||||
**/
|
||||
public function once(callback:()->Void):Void;
|
||||
}
|
Reference in New Issue
Block a user