ActiveAsyncCalls returns the number of async function calls that have been launched but whose completions have not yet been drained.
()
| 265 | // ActiveAsyncCalls returns the number of async function calls that have been launched |
| 266 | // but whose completions have not yet been drained. |
| 267 | func (f *ExecutionFrame) ActiveAsyncCalls() int { |
| 268 | if f.ctx == nil || f.ctx.gate == nil { |
| 269 | return 0 |
| 270 | } |
| 271 | return f.ctx.gate.ActiveCalls() |
| 272 | } |
| 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 { |