bdls: github.com/Sperax/bdls/timer Index | Files

package timer

import "github.com/Sperax/bdls/timer"

Index

Package Files

timedsched.go

type TimedSched Uses

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 Uses

func NewTimedSched(parallel int) *TimedSched

NewTimedSched creates a parallel-scheduler with given parallelization

func (*TimedSched) Close Uses

func (ts *TimedSched) Close()

Close terminates this scheduler

func (*TimedSched) Put Uses

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

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

Package timer imports 4 packages (graph) and is imported by 2 packages. Updated 2020-09-18. Refresh now. Tools for package owners.