AsyncCall returns the state of an async call by its callID, or nil if not found.
(callID int64)
| 273 | |
| 274 | // AsyncCall returns the state of an async call by its callID, or nil if not found. |
| 275 | func (f *ExecutionFrame) AsyncCall(callID int64) AsyncCall { |
| 276 | if f.ctx == nil || f.ctx.asyncCalls == nil { |
| 277 | return nil |
| 278 | } |
| 279 | acs := f.ctx.asyncCalls.getByID(callID) |
| 280 | if acs == nil { |
| 281 | return nil |
| 282 | } |
| 283 | return acs |
| 284 | } |
| 285 | |
| 286 | // SetCompletions configures a channel to receive callIDs when asynchronous evaluations finish. |
| 287 | func (f *ExecutionFrame) SetCompletions(ch chan<- int64) error { |