Prep calls the user-defined PrepFunc.
(ctx *PfContext)
| 422 | |
| 423 | // Prep calls the user-defined PrepFunc. |
| 424 | func (bn *BatchNode) Prep(ctx *PfContext) (any, error) { |
| 425 | if bn.PrepFunc == nil { |
| 426 | return nil, nil |
| 427 | } |
| 428 | // Prep returns the slice directly (as 'any') |
| 429 | return bn.PrepFunc(ctx, bn.params) |
| 430 | } |
| 431 | |
| 432 | // Exec iterates through the prepResult slice, calling ExecItemFunc for each item with retries. |
| 433 | func (bn *BatchNode) Exec(ctx *PfContext, prepResult any) (any, error) { |