2025-01-22 16:18:30 +01:00
|
|
|
package lua.lib.luv;
|
|
|
|
|
|
|
|
|
|
@:luaRequire("luv")
|
|
|
|
|
extern class Loop {
|
|
|
|
|
static function loop_close():Bool;
|
2026-05-21 23:40:20 -07:00
|
|
|
/**
|
|
|
|
|
Runs the event loop of libuv.
|
|
|
|
|
|
|
|
|
|
Haxe compiler automatically inserts a call to this function at the end of user's code if needed.
|
|
|
|
|
**/
|
2025-01-22 16:18:30 +01:00
|
|
|
static function run(?mode:String):Bool;
|
|
|
|
|
static function loop_alive():Bool;
|
|
|
|
|
static function stop():Void;
|
|
|
|
|
static function backend_fd():Int;
|
|
|
|
|
static function backend_timeout():Int;
|
|
|
|
|
static function now():Int;
|
|
|
|
|
static function update_time():Void;
|
|
|
|
|
static function walk(cb:Handle->Void):Void;
|
|
|
|
|
}
|