WithInnerOptions passes compose.Option values to each inner task invocation. Use this for request-time options like: - compose.WithCallbacks: Add callbacks for progress tracking - compose.WithMaxRunSteps: Limit execution steps per task Example: batchNode.Invoke(ctx, inputs, batch.WithInnerOp
(opts ...compose.Option)
| 41 | // ), |
| 42 | // ) |
| 43 | func WithInnerOptions(opts ...compose.Option) Option { |
| 44 | return func(o *options) { |
| 45 | o.innerOptions = append(o.innerOptions, opts...) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // applyBatchOptions creates an options struct from the given Option functions. |
| 50 | func applyBatchOptions(opts ...Option) *options { |
no outgoing calls
no test coverage detected