SetOption takes one or more option functions and applies them in order to Runtime.
(options ...Option)
| 339 | |
| 340 | // SetOption takes one or more option functions and applies them in order to Runtime. |
| 341 | func (r *Runtime) SetOption(options ...Option) error { |
| 342 | for _, option := range options { |
| 343 | if err := option(r); err != nil { |
| 344 | return err |
| 345 | } |
| 346 | } |
| 347 | return nil |
| 348 | } |
| 349 | |
| 350 | // UnloadProgram removes the named program, any currently running VM goroutine. |
| 351 | func (r *Runtime) UnloadProgram(pathname string) { |