16 lines
302 B
Go
16 lines
302 B
Go
// Code generated by "callbackgen -type PVD"; DO NOT EDIT.
|
|
|
|
package factorzoo
|
|
|
|
import ()
|
|
|
|
func (inc *PVD) OnUpdate(cb func(value float64)) {
|
|
inc.updateCallbacks = append(inc.updateCallbacks, cb)
|
|
}
|
|
|
|
func (inc *PVD) EmitUpdate(value float64) {
|
|
for _, cb := range inc.updateCallbacks {
|
|
cb(value)
|
|
}
|
|
}
|