AsyncCall returns the state of an async call by its callID, or nil if not found.
(callID int64)
| 428 | |
| 429 | // AsyncCall returns the state of an async call by its callID, or nil if not found. |
| 430 | func (f *ExecutionFrame) AsyncCall(callID int64) AsyncCall { |
| 431 | if f.ctx == nil || f.ctx.asyncCalls == nil { |
| 432 | return nil |
| 433 | } |
| 434 | acs := f.ctx.asyncCalls.getByID(callID) |
| 435 | if acs == nil { |
| 436 | return nil |
| 437 | } |
| 438 | return acs |
| 439 | } |
| 440 | |
| 441 | // SetCompletions configures a channel to receive callIDs when asynchronous evaluations finish. |
| 442 | func (f *ExecutionFrame) SetCompletions(ch chan<- int64) error { |