sequential

package
v0.0.0-...-ef8e99b Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 11

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