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

Method SetAsyncObserver

interpreter/frame.go:296–302  ·  view source on GitHub ↗

SetAsyncObserver sets the observer for monitoring asynchronous function calls.

(observer AsyncObserver)

Source from the content-addressed store, hash-verified

294
295// SetAsyncObserver sets the observer for monitoring asynchronous function calls.
296func (f *ExecutionFrame) SetAsyncObserver(observer AsyncObserver) error {
297 if f.ctx == nil {
298 return errors.New("asynchronous evaluation options require the execution frame to have a context configured")
299 }
300 f.ctx.observer = observer
301 return nil
302}
303
304// SetAsyncMaxConcurrency sets the maximum concurrency for asynchronous function calls.
305//

Callers 4

newAsyncFrameMethod · 0.80

Calls 1

NewMethod · 0.80