InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate before checking whether the function evaluation has been interrupted.
(checkFrequency uint)
| 744 | // InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate |
| 745 | // before checking whether the function evaluation has been interrupted. |
| 746 | func InterruptCheckFrequency(checkFrequency uint) ProgramOption { |
| 747 | return func(p *prog) (*prog, error) { |
| 748 | p.interruptCheckFrequency = checkFrequency |
| 749 | return p, nil |
| 750 | } |
| 751 | } |
| 752 | |
| 753 | // AsyncCallObserver sets the observer for monitoring asynchronous function calls during ConcurrentEval. |
| 754 | func AsyncCallObserver(observer async.Observer) ProgramOption { |
no outgoing calls