workchain

package module
v0.0.0-...-03dc622 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

workchain

Build License Go Reference

Installation

go get -u github.com/no-src/workchain

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CondFunc

type CondFunc func(ctx context.Context) (bool, context.Context, error)

func (CondFunc) Loop

func (cf CondFunc) Loop() CondFunc

type DoFunc

type DoFunc func(ctx context.Context) error

type Work

type Work struct {
	// contains filtered or unexported fields
}

func NewWork

func NewWork(do func(ctx context.Context) error) *Work

func WorkChain

func WorkChain(works ...*Work) *Work

func WorkRing

func WorkRing(works ...*Work) *Work

func (*Work) Do

func (w *Work) Do(ctx context.Context) error

func (*Work) WithCond

func (w *Work) WithCond(cond CondFunc) *Work

Jump to

Keyboard shortcuts

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