Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PollerHandler ¶
type PollerHandler[T any] struct { AsyncURL string `json:"asyncURL"` OrigURL string `json:"origURL"` Method string `json:"method"` FinalState runtime.FinalStateVia `json:"finalState"` CurState string `json:"state"` // contains filtered or unexported fields }
PollerHandler is an LRO poller that uses the LocationAsync pattern.
func NewPollerHandler ¶
func NewPollerHandler[T any](pl runtime.Pipeline, resp *http.Response, finalState runtime.FinalStateVia) (*PollerHandler[T], error)
NewPollerHandler creates a new PollerHandler from the provided initial response. Pass nil for response to create an empty Poller for rehydration.
func (*PollerHandler[T]) Done ¶
func (p *PollerHandler[T]) Done() bool
Done returns true if the LRO is in a terminal state.
Click to show internal directories.
Click to hide internal directories.