ProgramOption is used to set options when initializing a Program. Program can accept a variable number of options. Example usage: p := NewProgram(model, WithInput(someInput), WithOutput(someOutput))
func(*Program)
| 15 | // |
| 16 | // p := NewProgram(model, WithInput(someInput), WithOutput(someOutput)) |
| 17 | type ProgramOption func(*Program) |
| 18 | |
| 19 | // WithContext lets you specify a context in which to run the Program. This is |
| 20 | // useful if you want to cancel the execution from outside. When a Program gets |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…