action

package
v0.0.0-...-4c73ccb Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(id string) (err error)

Func action function type.

type Handler

type Handler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Handler action handler.

func New

func New(maxConcurrentActions int) (handler *Handler)

New creates new action handler.

func (*Handler) Execute

func (handler *Handler) Execute(id string, doAction Func) (channel <-chan error)

Execute executes action.

func (*Handler) Wait

func (handler *Handler) Wait()

Wait waits all actions are executed.

Jump to

Keyboard shortcuts

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