AsyncCallObserver sets the observer for monitoring asynchronous function calls during ConcurrentEval.
(observer async.Observer)
| 749 | |
| 750 | // AsyncCallObserver sets the observer for monitoring asynchronous function calls during ConcurrentEval. |
| 751 | func AsyncCallObserver(observer async.Observer) ProgramOption { |
| 752 | return func(p *prog) (*prog, error) { |
| 753 | p.asyncObserver = observer |
| 754 | return p, nil |
| 755 | } |
| 756 | } |
| 757 | |
| 758 | // AsyncCompletionBufferSize sets the size of the buffer for the async completion channel. |
| 759 | // By default, the channel is unbuffered. |
no outgoing calls