SetAsyncObserver sets the observer for monitoring asynchronous function calls.
(observer AsyncObserver)
| 294 | |
| 295 | // SetAsyncObserver sets the observer for monitoring asynchronous function calls. |
| 296 | func (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 | // |