AsyncCompletionBufferSize sets the size of the buffer for the async completion channel. By default, the channel is unbuffered.
(size int)
| 824 | // AsyncCompletionBufferSize sets the size of the buffer for the async completion channel. |
| 825 | // By default, the channel is unbuffered. |
| 826 | func AsyncCompletionBufferSize(size int) ProgramOption { |
| 827 | return func(p *prog) (*prog, error) { |
| 828 | p.asyncCompletionBufferSize = size |
| 829 | return p, nil |
| 830 | } |
| 831 | } |
| 832 | |
| 833 | // AsyncMaxConcurrency sets the maximum number of concurrently launched async calls during |
| 834 | // ConcurrentEval. This bounds the number of in-flight async goroutines, so a wide fan-out (such |
no outgoing calls