asyncCallState tracks the result of a single async function call across multiple re-evaluations.
| 260 | |
| 261 | // asyncCallState tracks the result of a single async function call across multiple re-evaluations. |
| 262 | type asyncCallState struct { |
| 263 | id int64 // AST expression node ID where the call is defined. |
| 264 | callID int64 // Unique incremental tracking ID assigned to this call. |
| 265 | function string |
| 266 | overload string |
| 267 | argVals []ref.Val |
| 268 | impl functions.AsyncOp |
| 269 | |
| 270 | mu sync.RWMutex |
| 271 | started bool |
| 272 | result ref.Val |
| 273 | |
| 274 | gate *asyncGate |
| 275 | } |
| 276 | |
| 277 | // CallID returns the unique identifier for this async call invocation. |
| 278 | func (acs *asyncCallState) CallID() int64 { |
nothing calls this directly
no outgoing calls
no test coverage detected