MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / AwaitResult

Method AwaitResult

internal/bridge/taskmanager.go:193–199  ·  view source on GitHub ↗

AwaitResult returns the task's result channel for reading. Callers should read from this channel to receive results routed by the fan-out.

(sessionID string, taskID uint32)

Source from the content-addressed store, hash-verified

191// AwaitResult returns the task's result channel for reading.
192// Callers should read from this channel to receive results routed by the fan-out.
193func (tm *TaskManager) AwaitResult(sessionID string, taskID uint32) <-chan *sessions.CommandResult {
194 task := tm.Get(sessionID, taskID)
195 if task == nil {
196 return nil
197 }
198 return task.resultCh
199}
200
201// Complete marks a task as completed and closes its result channel.
202func (tm *TaskManager) Complete(sessionID string, taskID uint32) {

Callers 8

TestTask_AwaitResultFunction · 0.95
handleDirectUploadMethod · 0.80
executeChunksMethod · 0.80
enqueueAndAwaitFunction · 0.80
handleDirectDownloadMethod · 0.80
probeAndDownloadMethod · 0.80

Calls 1

GetMethod · 0.95