Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockedWorker ¶
type BlockedWorker struct {
// contains filtered or unexported fields
}
func NewBlockedWorker ¶
func NewBlockedWorker(onStart func(), work func(), onStop func()) *BlockedWorker
func (*BlockedWorker) Start ¶
func (l *BlockedWorker) Start()
func (*BlockedWorker) Stop ¶
func (l *BlockedWorker) Stop()
type ScheduledWorker ¶
type ScheduledWorker struct {
// contains filtered or unexported fields
}
func NewScheduledWorker ¶
func NewScheduledWorker( onStart func(), work func(), onStop func(), duration time.Duration, ) *ScheduledWorker
func (*ScheduledWorker) Start ¶
func (l *ScheduledWorker) Start()
func (*ScheduledWorker) Stop ¶
func (l *ScheduledWorker) Stop()
Click to show internal directories.
Click to hide internal directories.