Help us shape the future of Go! Take the 2026 Go Developer Survey

suite

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrYield = errors.New("yield")

ErrYield asks a parked call to run another retained call and wait again.

Functions

func Resolve

func Resolve(root, from, ref string) string

Types

type Suite

type Suite struct {
	Root    string
	Env     string
	Base    string
	Main    string
	Overlay string
	Err     error
	// contains filtered or unexported fields
}

func Open

func Open(start, env string) *Suite

func (*Suite) Acquire

func (s *Suite) Acquire(ctx context.Context, tags []string) (func(), error)

func (*Suite) DoOnce

func (s *Suite) DoOnce(ctx context.Context, key string, run func(context.Context) (any, error)) (any, error)

func (*Suite) DoSingle

func (s *Suite) DoSingle(ctx context.Context, key string, run func(context.Context) (any, error)) (any, error)

func (*Suite) Listen

func (s *Suite) Listen(ctx context.Context, timeout time.Duration, wake <-chan struct{}) (any, error)

func (*Suite) Signal

func (s *Suite) Signal(v any) error

Jump to

Keyboard shortcuts

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