Documentation
¶
Index ¶
- type Handler
- func (w *Handler) SetInitialDelay(d time.Duration) *Handler
- func (w *Handler) SetThrottle(d time.Duration) (*Handler, error)
- func (w *Handler) SetTimeout(d time.Duration) *Handler
- func (w *Handler) Wait() (interface{}, error)
- func (w *Handler) WaitWithContext(ctx context.Context) (res interface{}, err error)
- type WaitFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) SetInitialDelay ¶ added in v1.33.2
SetInitialDelay sets an optional delay before the first poll is executed. This is useful when an operation is known to need time before its status changes.
func (*Handler) SetThrottle ¶
SetThrottle sets the duration between each poll. Returns *Handler for chaining.
func (*Handler) SetTimeout ¶
SetTimeout sets the maximum duration before Wait times out. Returns *Handler for chaining.
Click to show internal directories.
Click to hide internal directories.