forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
21
Kha/Tools/macos/std/eval/luv/Async.hx
Normal file
21
Kha/Tools/macos/std/eval/luv/Async.hx
Normal file
@ -0,0 +1,21 @@
|
||||
package eval.luv;
|
||||
|
||||
/**
|
||||
Inter-loop communication.
|
||||
|
||||
@see https://aantron.github.io/luv/luv/Luv/Async
|
||||
**/
|
||||
@:using(eval.luv.Handle)
|
||||
@:coreType abstract Async to Handle {
|
||||
/**
|
||||
Allocates and initializes an async handle.
|
||||
|
||||
The handle should be cleaned up with `eval.luv.Handle.close` when no longer needed.
|
||||
**/
|
||||
static public function init(loop:Loop, callback:(async:Async)->Void):Result<Async>;
|
||||
|
||||
/**
|
||||
Triggers a call to the handle's callback by the handle's loop.
|
||||
**/
|
||||
public function send():Result<Result.NoData>;
|
||||
}
|
Reference in New Issue
Block a user