queue

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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) Start

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

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

Jump to

Keyboard shortcuts

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