Documentation
¶
Index ¶
- func RunPeriodically(f func(), stop chan bool, interval time.Duration)
- func WaitForSomething[T any](src ValueProvider[T]) optional.Optional[T]
- func WaitForValue[T comparable](value T, src ValueProvider[T])
- func WaitForValueRetries[T comparable](value T, src ValueProvider[T], retryCount int)
- type Condition
- type Executor
- type ValueProvider
- type Waiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunPeriodically ¶
RunPeriodically invokes function "f" every "interval" until something is sent to the "stop" channel. If the "stop" channel is null, then the invocation never stops.
func WaitForSomething ¶
func WaitForSomething[T any](src ValueProvider[T]) optional.Optional[T]
WaitForSomething blocks until src returns optional with value or with error. By default, it tries 30 times with 1 second interval between retries
func WaitForValue ¶
func WaitForValue[T comparable](value T, src ValueProvider[T])
WaitForValue blocks until src returns optional with given value or with error. By default, it tries 30 times with 1 second interval between retries
func WaitForValueRetries ¶
func WaitForValueRetries[T comparable](value T, src ValueProvider[T], retryCount int)
Types ¶
type Condition ¶
func NewEquals ¶
func NewEquals[T comparable](value T) Condition[T]
func NewIsPresent ¶
type ValueProvider ¶
Click to show internal directories.
Click to hide internal directories.