concurrency

package
v0.0.0-...-98a074b Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner interface {
	// Concurrently executes a function wrapped in a goroutine.
	Run(task func()) error

	// Waits for all running functions to complete and frees resources.
	WaitAndClose()

	// Returns the number of currently executing functions.
	GetNumberOfRunningTasks() int

	// Returns the quota limit
	GetQuota() int
}

Defines concurrency runner functionality.

Directories

Path Synopsis
chan
sync

Jump to

Keyboard shortcuts

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