mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 01:05:15 +00:00
13 lines
287 B
Go
13 lines
287 B
Go
|
package batch
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type Option func(query *AsyncTimeRangedBatchQuery)
|
||
|
|
||
|
// JumpIfEmpty jump the startTime + duration when the result is empty
|
||
|
func JumpIfEmpty(duration time.Duration) Option {
|
||
|
return func(query *AsyncTimeRangedBatchQuery) {
|
||
|
query.JumpIfEmpty = duration
|
||
|
}
|
||
|
}
|