queue

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

Repo предоставляет функциональность асинхронной очереди задач

func New

func New() *Repo

New создает новый экземпляр сервиса очереди

func (*Repo) Add

func (s *Repo) Add(fn func())

Add добавляет задачу в очередь

func (*Repo) Close

func (s *Repo) Close() error

Close останавливает сервис очереди

func (*Repo) Len

func (s *Repo) Len() int

Len возвращает количество задач в очереди

func (*Repo) StartContext added in v0.0.2

func (s *Repo) StartContext(ctx context.Context) error

StartContext запускает обработчик очереди

Jump to

Keyboard shortcuts

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