ActiveAsyncCalls returns the number of async function calls that have been launched but whose completions have not yet been drained.
()
| 420 | // ActiveAsyncCalls returns the number of async function calls that have been launched |
| 421 | // but whose completions have not yet been drained. |
| 422 | func (f *ExecutionFrame) ActiveAsyncCalls() int { |
| 423 | if f.ctx == nil || f.ctx.gate == nil { |
| 424 | return 0 |
| 425 | } |
| 426 | return f.ctx.gate.ActiveCalls() |
| 427 | } |
| 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 { |