class Lapis::AsyncCommandRunner

Defined in:

libgodot/editor/async_command_runner.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

try?(&)
try?
try?

Constructor Detail

def self.instance : AsyncCommandRunner #

Instance Method Detail

def active_command_name : String #

def cancel : Void #

Cancels the actively running child process if any


def elapsed_seconds : Float64 #

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.


def running? : Bool #

def set_on_line(&block : String -> Nil) : Void #

Sets or replaces the live line callback