WithIDGenerator overrides identifier generation for deterministic tests.
(newID func(prefix string) string)
| 220 | |
| 221 | // WithIDGenerator overrides identifier generation for deterministic tests. |
| 222 | func WithIDGenerator(newID func(prefix string) string) Option { |
| 223 | return func(opts *managerOptions) { |
| 224 | opts.newID = newID |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | // WithCancelGracePeriod overrides the cooperative-stop grace period used before |
| 229 | // requesting forced session termination during task-driven cancellation. |
no outgoing calls