forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
26
Kha/Tools/linux_arm64/std/eval/luv/Idle.hx
Normal file
26
Kha/Tools/linux_arm64/std/eval/luv/Idle.hx
Normal file
@ -0,0 +1,26 @@
|
||||
package eval.luv;
|
||||
|
||||
/**
|
||||
Per-iteration callback.
|
||||
|
||||
@see https://aantron.github.io/luv/luv/Luv/Idle
|
||||
**/
|
||||
@:using(eval.luv.Handle)
|
||||
@:coreType abstract Idle to Handle {
|
||||
/**
|
||||
Allocate and initialize an idle handle.
|
||||
|
||||
The handle should be cleaned up with `eval.luv.Handle.close` when no longer needed.
|
||||
**/
|
||||
static public function init(loop:Loop):Result<Idle>;
|
||||
|
||||
/**
|
||||
Starts the handle with the given callback.
|
||||
**/
|
||||
public function start(callback:()->Void):Result<Result.NoData>;
|
||||
|
||||
/**
|
||||
Stops the handle.
|
||||
**/
|
||||
public function stop():Result<Result.NoData>;
|
||||
}
|
Reference in New Issue
Block a user