SetAsyncObserver sets the observer for monitoring asynchronous function calls.
(observer AsyncObserver)
| 449 | |
| 450 | // SetAsyncObserver sets the observer for monitoring asynchronous function calls. |
| 451 | func (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 | // |