package
0.0.0-20241208190318-80fc79a84806
Repository: https://github.com/grevych/gobox.git
Documentation: pkg.go.dev

# Packages

Package pool implements an async pool.

# Functions

Loop repeatedly executes the provided task until it returns false or the context is canceled.
NewMutexWithContext creates a new MutexWithContext instance.
NewTaskGroup creates new instance of TaskGroup.
Run executes a single asynchronous task.
RunClose closes any references a runner might be using.
RunGroup runs a group of runner tasks and exits when the first run group errors out.
Sleep sleeps for the specified duration but can be canceled if the context is canceled or the context has an earlier deadline/timeout.
SleepUntil sleeps until the specified deadline but can be canceled if the context is canceled or has an earlier deadline.

# Variables

Default is the default runner.

# Structs

MutexWithContext is a lock that supports context cancellation.
TaskGroup is an asyncronous task runner that wraps a WaitGroup.

# Interfaces

Closer is the interface for closing a runner function.
Runner is the default interface for a runner function.

# Type aliases

Func is a helper that implements the Runner interface.