concurrency

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrySendThroughChannel added in v1.6.2

func TrySendThroughChannel[T any](ctx context.Context, msg T, channel chan<- T) bool

TrySendThroughChannel attempts to send an object through a channel. If the context is canceled, it will not send the object.

Types

type Pool added in v1.8.15

type Pool = pool.ContextPool

func NewPool

func NewPool(ctx context.Context, maxGoroutines int) *Pool

NewPool returns a new pool where each task respects context cancellation. Wait() will only return the first error seen.

Jump to

Keyboard shortcuts

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