Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOWorkloader ¶
type IOWorkloader interface {
IOWorkload()
}
IOWorkloader will be included in Worker Pool.
type RealScheduler ¶
type RealScheduler struct {
// contains filtered or unexported fields
}
RealScheduler will hold the task's sub tasks.
func NewScheduler ¶
func NewScheduler(pool *navvy.Pool) *RealScheduler
NewScheduler will create a new RealScheduler.
func (*RealScheduler) Async ¶
func (s *RealScheduler) Async(task navvy.Task)
Async will create a new task immediately.
func (*RealScheduler) Sync ¶
func (s *RealScheduler) Sync(task navvy.Task)
Sync will return after this task finished.
type VoidWorkloader ¶
type VoidWorkloader interface {
VoidWorkload()
}
VoidWorkloader will not be included in Worker Pool.
Click to show internal directories.
Click to hide internal directories.