scheduler

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

func NewScheduler

func NewScheduler() *Scheduler

func (*Scheduler) RegisterTasks

func (s *Scheduler) RegisterTasks(tasks ...*Task)

func (*Scheduler) Run

func (s *Scheduler) Run()

type Task

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

func NewTask

func NewTask(fn func(), description string, deps ...TaskID) *Task

func (*Task) ID

func (t *Task) ID() TaskID

type TaskID

type TaskID string

Jump to

Keyboard shortcuts

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