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

Method AsyncCall

interpreter/frame.go:275–284  ·  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

273
274// AsyncCall returns the state of an async call by its callID, or nil if not found.
275func (f *ExecutionFrame) AsyncCall(callID int64) AsyncCall {
276 if f.ctx == nil || f.ctx.asyncCalls == nil {
277 return nil
278 }
279 acs := f.ctx.asyncCalls.getByID(callID)
280 if acs == nil {
281 return nil
282 }
283 return acs
284}
285
286// SetCompletions configures a channel to receive callIDs when asynchronous evaluations finish.
287func (f *ExecutionFrame) SetCompletions(ch chan<- int64) error {

Calls 1

getByIDMethod · 0.80