WithBootstrapTimers toggles timer injection in bootstrap. Timer injection imports setTimeout/clearTimeout from the "os" module, so enabling timers implicitly requires std/os registration. During option normalization, injectTimers=true forces loadStdOS=true.
(enabled bool)
| 336 | // enabling timers implicitly requires std/os registration. During option |
| 337 | // normalization, injectTimers=true forces loadStdOS=true. |
| 338 | func WithBootstrapTimers(enabled bool) ContextBootstrapOption { |
| 339 | return func(o *ContextBootstrapOptions) { |
| 340 | o.injectTimers = enabled |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | func newContextBootstrapOptions(opts ...ContextBootstrapOption) ContextBootstrapOptions { |
| 345 | cfg := ContextBootstrapOptions{ |
no outgoing calls