ConcurrentDrainStrategy configures the strategy for when to re-evaluate the program during a ConcurrentEval call after receiving asynchronous completion signals. By default, the program re-evaluates immediately after every completion.
(strategy async.DrainStrategy)
| 785 | // during a ConcurrentEval call after receiving asynchronous completion signals. |
| 786 | // By default, the program re-evaluates immediately after every completion. |
| 787 | func ConcurrentDrainStrategy(strategy async.DrainStrategy) ProgramOption { |
| 788 | return func(p *prog) (*prog, error) { |
| 789 | p.drainStrategy = strategy |
| 790 | return p, nil |
| 791 | } |
| 792 | } |
| 793 | |
| 794 | // CostEstimatorOptions configure type-check time options for estimating expression cost. |
| 795 | func CostEstimatorOptions(costOpts ...checker.CostOption) EnvOption { |
no outgoing calls