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

Method SetAsyncObserver

interpreter/frame.go:451–457  ·  view source on GitHub ↗

SetAsyncObserver sets the observer for monitoring asynchronous function calls.

(observer AsyncObserver)

Source from the content-addressed store, hash-verified

449
450// SetAsyncObserver sets the observer for monitoring asynchronous function calls.
451func (f *ExecutionFrame) SetAsyncObserver(observer AsyncObserver) error {
452 if f.ctx == nil {
453 return errors.New("asynchronous evaluation options require the execution frame to have a context configured")
454 }
455 f.ctx.observer = observer
456 return nil
457}
458
459// SetAsyncMaxConcurrency sets the maximum concurrency for asynchronous function calls.
460//

Callers 4

newAsyncFrameMethod · 0.80

Calls 1

NewMethod · 0.80