Merge branch 'async-spawn-optional-callbacks' of https://github.com/actionless/awesome
This commit is contained in:
commit
fd8d35cb12
|
@ -123,8 +123,10 @@ function spawn.with_line_callback(cmd, callbacks)
|
|||
done_before = true
|
||||
return
|
||||
end
|
||||
if done_callback then
|
||||
done_callback()
|
||||
end
|
||||
end
|
||||
if have_stdout then
|
||||
spawn.read_lines(Gio.UnixInputStream.new(stdout, true),
|
||||
stdout_callback, step_done, true)
|
||||
|
|
Loading…
Reference in New Issue