InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate before checking whether the function evaluation has been interrupted.
(checkFrequency uint)
| 807 | // InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate |
| 808 | // before checking whether the function evaluation has been interrupted. |
| 809 | func InterruptCheckFrequency(checkFrequency uint) ProgramOption { |
| 810 | return func(p *prog) (*prog, error) { |
| 811 | p.interruptCheckFrequency = checkFrequency |
| 812 | return p, nil |
| 813 | } |
| 814 | } |
| 815 | |
| 816 | // AsyncCallObserver sets the observer for monitoring asynchronous function calls during ConcurrentEval. |
| 817 | func AsyncCallObserver(observer async.Observer) ProgramOption { |
no outgoing calls