From 5faa510117f5bd2215ad137c2e712fd333aecd94 Mon Sep 17 00:00:00 2001 From: IamTheFij Date: Thu, 13 Feb 2025 23:37:29 -0800 Subject: [PATCH] Clarify order behavior --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 70a105b..9bb2239 100644 --- a/main.go +++ b/main.go @@ -90,6 +90,7 @@ func (sr *ShellRunner) Start() { // No commands can be added if the runner has been stopped or not yet started. // The callback is executed asynchronously after the command has completed. // The order of command execution and callback invocation can be expected to be preserved (maybe?). +// They are atarted in order, but may not finish or execute their callbacks in the same order func (sr *ShellRunner) AddCommand(command string, callback func(*CommandResult)) error { cmd, cancel := sr.newShellCommand(command) return sr.AddCmd(cmd, callback, cancel)