singleton

package
v0.0.0-...-bf0d46e Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAction

func NewAction[E storage.Entry](opts ...Option[E]) *action.Action[E]

func NewActor

func NewActor[E storage.Entry](w task.Singleton[E]) *action.Action[E]

Types

type Action

type Action[E storage.Entry] struct {
	// contains filtered or unexported fields
}

func (*Action[E]) Concurrency

func (a *Action[E]) Concurrency() int

func (*Action[E]) Run

func (a *Action[E]) Run(items []E) (int, int)

func (*Action[E]) Tasker

func (a *Action[E]) Tasker() task.Tasker[E]

type Option

type Option[E storage.Entry] func(singleton *Action[E])

func WithSingleton

func WithSingleton[E storage.Entry](s task.Singleton[E]) Option[E]

Jump to

Keyboard shortcuts

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