AsyncCallObserver sets the observer for monitoring asynchronous function calls during ConcurrentEval.
(observer async.Observer)
| 815 | |
| 816 | // AsyncCallObserver sets the observer for monitoring asynchronous function calls during ConcurrentEval. |
| 817 | func AsyncCallObserver(observer async.Observer) ProgramOption { |
| 818 | return func(p *prog) (*prog, error) { |
| 819 | p.asyncObserver = observer |
| 820 | return p, nil |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | // AsyncCompletionBufferSize sets the size of the buffer for the async completion channel. |
| 825 | // By default, the channel is unbuffered. |
no outgoing calls