scheduler

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryID added in v0.7.3

type EntryID int

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(lc fx.Lifecycle,
	adaptors *adaptors.Adaptors) (scheduler *Scheduler, err error)

func (*Scheduler) AddFunc added in v0.7.3

func (c *Scheduler) AddFunc(spec string, cmd func()) (id EntryID, err error)

func (*Scheduler) Remove added in v0.7.3

func (c *Scheduler) Remove(id EntryID)

func (*Scheduler) Shutdown

func (c *Scheduler) Shutdown(_ context.Context) error

func (*Scheduler) Start

func (c *Scheduler) Start(_ context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL