WithBackPressureStrategy sets the back pressure strategy: drop or block.
(strategy BackpressureStrategy)
| 152 | |
| 153 | // WithBackPressureStrategy sets the back pressure strategy: drop or block. |
| 154 | func WithBackPressureStrategy(strategy BackpressureStrategy) Option { |
| 155 | return newFuncOption(func(options *funcOption) { |
| 156 | options.backPressureStrategy = strategy |
| 157 | }) |
| 158 | } |
| 159 | |
| 160 | // WithErrorStrategy defines how an observable should deal with error. |
| 161 | // This strategy is propagated to the parent observable. |
searching dependent graphs…