sched

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 1 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 New

func New(n int) *Scheduler

func (*Scheduler) Stop

func (s *Scheduler) Stop()

Stop waits for all tasks then shuts down workers.

func (*Scheduler) Submit

func (s *Scheduler) Submit(task Task)

func (*Scheduler) Wait

func (s *Scheduler) Wait()

Wait blocks until all submitted tasks are finished.

type Task

type Task func()

Jump to

Keyboard shortcuts

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