change: set alias WithWaitTime for compatibility

This commit is contained in:
lilong.129
2023-05-30 15:50:09 +08:00
parent a36c4b7a9a
commit 788d2aed9c

View File

@@ -266,6 +266,9 @@ func WithIndex(index int) ActionOption {
}
}
// set alias for compatibility
var WithWaitTime = WithInterval
func WithInterval(sec float64) ActionOption {
return func(o *ActionOptions) {
o.Interval = sec