IfBool only runs this executor if conditional is true
(conditional bool)
| 216 | |
| 217 | // IfBool only runs this executor if conditional is true |
| 218 | func (e Executor) IfBool(conditional bool) Executor { |
| 219 | return e.If(func(_ context.Context) bool { |
| 220 | return conditional |
| 221 | }) |
| 222 | } |
| 223 | |
| 224 | // Finally adds an executor to run after other executor |
| 225 | func (e Executor) Finally(finally Executor) Executor { |
no test coverage detected