Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DurationExecutor ¶ added in v0.27.4
type DurationExecutor struct {
// contains filtered or unexported fields
}
DurationExecutor executes a task and then stops immediately after the specified duration.
func NewDurationExecutor ¶ added in v0.27.4
func NewDurationExecutor(duration time.Duration, log logging.Logger) *DurationExecutor
NewDurationExecutor creates a new DurationExecutor with the given duration and logger.
type PeriodicExecutor ¶
type PeriodicExecutor struct {
// contains filtered or unexported fields
}
func NewPeriodicExecutor ¶
func NewPeriodicExecutor(interval time.Duration, log logging.Logger) *PeriodicExecutor
func (*PeriodicExecutor) Close ¶
func (pe *PeriodicExecutor) Close() error
Click to show internal directories.
Click to hide internal directories.