class
Lapis::AsyncCommandRunner
- Lapis::AsyncCommandRunner
- Reference
- Object
Defined in:
libgodot/editor/async_command_runner.crConstructors
Instance Method Summary
- #active_command_name : String
-
#cancel : Void
Cancels the actively running child process if any
- #elapsed_seconds : Float64
-
#poll : Void
Drains all queued output events and dispatches callbacks on the calling thread (Godot main thread).
-
#run(name : String, command : String, args : Array(String), env : Process::Env = nil, chdir : String | Nil = nil, on_line : Proc(String, Nil) | Nil = nil, &on_finish : Int32, Float64, String -> Nil) : Bool
Executes a command asynchronously on a background thread.
- #running? : Bool
-
#set_on_line(&block : String -> Nil) : Void
Sets or replaces the live line callback
Instance methods inherited from class Object
try?(&)try? try?
Constructor Detail
Instance Method Detail
def poll : Void
#
Drains all queued output events and dispatches callbacks on the calling thread (Godot main thread).
def run(name : String, command : String, args : Array(String), env : Process::Env = nil, chdir : String | Nil = nil, on_line : Proc(String, Nil) | Nil = nil, &on_finish : Int32, Float64, String -> Nil) : Bool
#
Executes a command asynchronously on a background thread. Returns true if started, false if another command is already active.