Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimedSched ¶
type TimedSched struct {
// contains filtered or unexported fields
}
TimedSched represents the control struct for timed parallel scheduler.
var System *TimedSched = NewTimedSched(runtime.NumCPU())
System is a global timed scheduler.
func NewTimedSched ¶
func NewTimedSched(parallel int) *TimedSched
NewTimedSched creates a parallel-scheduler with given parallelization.
func (*TimedSched) Put ¶
func (ts *TimedSched) Put(f func(), deadline time.Time)
Put a function 'f' awaiting to be executed at 'deadline'.
Click to show internal directories.
Click to hide internal directories.