WithPool allows to specify an execution pool.
(pool int)
| 138 | |
| 139 | // WithPool allows to specify an execution pool. |
| 140 | func WithPool(pool int) Option { |
| 141 | return newFuncOption(func(options *funcOption) { |
| 142 | options.pool = pool |
| 143 | }) |
| 144 | } |
| 145 | |
| 146 | // WithCPUPool allows to specify an execution pool based on the number of logical CPUs. |
| 147 | func WithCPUPool() Option { |
searching dependent graphs…