Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPool ¶
func NewPool(ctx context.Context, maxGoroutines int) *pool.ContextPool
NewPool returns a new pool where each task respects context cancellation. Wait() will only return the first error seen.
func TrySendThroughChannel ¶ added in v1.6.2
TrySendThroughChannel attempts to send an object through a channel. If the context is canceled, it will not send the object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.