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