MCPcopy Create free account
hub / github.com/cel-expr/cel-go / AsyncCall

Method AsyncCall

interpreter/frame.go:430–439  ·  view source on GitHub ↗

AsyncCall returns the state of an async call by its callID, or nil if not found.

(callID int64)

Source from the content-addressed store, hash-verified

428
429// AsyncCall returns the state of an async call by its callID, or nil if not found.
430func (f *ExecutionFrame) AsyncCall(callID int64) AsyncCall {
431 if f.ctx == nil || f.ctx.asyncCalls == nil {
432 return nil
433 }
434 acs := f.ctx.asyncCalls.getByID(callID)
435 if acs == nil {
436 return nil
437 }
438 return acs
439}
440
441// SetCompletions configures a channel to receive callIDs when asynchronous evaluations finish.
442func (f *ExecutionFrame) SetCompletions(ch chan<- int64) error {

Calls 1

getByIDMethod · 0.80