scheduler

package
v0.0.0-...-1b9946f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLocked = errors.New("entity is locked")

Functions

This section is empty.

Types

type Lock

type Lock interface {
	Extend() error
	Release() error
}

type Scheduler

type Scheduler interface {
	Add(entities ...string) error
	List() ([]string, error)
	//Rand() (id string, err error)
	Remove(entity string) error
	Lock(entity string) (Lock, error)
	Notify() <-chan struct{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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