awaitTaskResult waits on the per-task channel for a result. The channel is dedicated to this task, so no taskID filtering is needed.
(ch <-chan *sessions.CommandResult, _ uint32)
| 80 | // awaitTaskResult waits on the per-task channel for a result. |
| 81 | // The channel is dedicated to this task, so no taskID filtering is needed. |
| 82 | func awaitTaskResult(ch <-chan *sessions.CommandResult, _ uint32) (*sessions.CommandResult, bool) { |
| 83 | result, ok := <-ch |
| 84 | return result, ok |
| 85 | } |
| 86 | |
| 87 | // acquireShellSession waits for the session and picks a shell tool. |
| 88 | // On failure it marks the task as failed and returns nil. |
no outgoing calls
no test coverage detected