Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlyLoopTask ¶
type FlyLoopTask struct {
Ctx context.Context
Cancel context.CancelFunc
Done chan struct{}
HandleFunc func() error
Interval int
IsRunning bool
Error error
}
func NewFlyLoopTask ¶
func NewFlyLoopTask() *FlyLoopTask
func (*FlyLoopTask) SetFunc ¶
func (s *FlyLoopTask) SetFunc(f func() error)
func (*FlyLoopTask) SetInterval ¶
func (s *FlyLoopTask) SetInterval(Interval int)
func (*FlyLoopTask) Start ¶
func (s *FlyLoopTask) Start() error
func (*FlyLoopTask) Stop ¶
func (s *FlyLoopTask) Stop() error
func (*FlyLoopTask) Wait ¶
func (s *FlyLoopTask) Wait()
Click to show internal directories.
Click to hide internal directories.