scheduler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 4 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[T any] struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler[T any]() *Scheduler[T]

func (*Scheduler[T]) Close

func (s *Scheduler[T]) Close()

func (*Scheduler[T]) ScheduleDeadline

func (s *Scheduler[T]) ScheduleDeadline(item T, deadline time.Time)

func (*Scheduler[T]) ScheduleDelay

func (s *Scheduler[T]) ScheduleDelay(item T, delay time.Duration)

func (*Scheduler[T]) Scheduled

func (s *Scheduler[T]) Scheduled() <-chan T

Jump to

Keyboard shortcuts

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