DefaultBootstrap enables the same bootstrap pipeline as Runtime.NewContext: std/os module registration plus global timer injection.
()
| 301 | // DefaultBootstrap enables the same bootstrap pipeline as Runtime.NewContext: |
| 302 | // std/os module registration plus global timer injection. |
| 303 | func DefaultBootstrap() ContextBootstrapOption { |
| 304 | return func(o *ContextBootstrapOptions) { |
| 305 | o.loadStdOS = true |
| 306 | o.injectTimers = true |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | // MinimalBootstrap enables std/os module registration but skips timer injection. |
| 311 | func MinimalBootstrap() ContextBootstrapOption { |
no outgoing calls