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 SystemTimedSched *TimedSched = NewTimedSched(runtime.NumCPU())

      SystemTimedSched is the library level timed-scheduler

      func NewTimedSched

      func NewTimedSched(parallel int) *TimedSched

        NewTimedSched creates a parallel-scheduler with given parallelization

        func (*TimedSched) Close

        func (ts *TimedSched) Close()

          Close terminates this scheduler

          func (*TimedSched) Put

          func (ts *TimedSched) Put(f func(), deadline time.Time)

            Put a function 'f' awaiting to be executed at 'deadline'

            Source Files