sequential

package
v0.0.0-...-82305ef Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler struct {
	Do func(context.Context, *events.XRPCStreamEvent) error
	// contains filtered or unexported fields
}

Scheduler is a sequential scheduler that will run work on a single worker

func NewScheduler

func NewScheduler(ident string, do func(context.Context, *events.XRPCStreamEvent) error) *Scheduler

func (*Scheduler) AddWork

func (s *Scheduler) AddWork(ctx context.Context, repo string, val *events.XRPCStreamEvent) error

func (*Scheduler) Shutdown

func (p *Scheduler) Shutdown()

Jump to

Keyboard shortcuts

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