mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
16 lines
313 B
Go
16 lines
313 B
Go
// Code generated by "callbackgen -type Float64Updater"; DO NOT EDIT.
|
|
|
|
package indicator
|
|
|
|
import ()
|
|
|
|
func (F *Float64Updater) OnUpdate(cb func(v float64)) {
|
|
F.updateCallbacks = append(F.updateCallbacks, cb)
|
|
}
|
|
|
|
func (F *Float64Updater) EmitUpdate(v float64) {
|
|
for _, cb := range F.updateCallbacks {
|
|
cb(v)
|
|
}
|
|
}
|