Documentation ¶
Index ¶
- Variables
- func Consume[T any](ctx context.Context, numThread int, fn func(threadID int, value T) error, ...) (put Put[T], wait Wait)
- type BacklogSize
- type ConsumeOption
- type Pool
- type Put
- type Wait
- type WaitGroup
- func (w *WaitGroup) Add() (done func())
- func (w *WaitGroup) Cancel()
- func (w *WaitGroup) Deadline() (deadline time.Time, ok bool)
- func (w *WaitGroup) Done() <-chan struct{}
- func (w *WaitGroup) Err() error
- func (w *WaitGroup) Go(fn func())
- func (w *WaitGroup) Value(key any) any
- func (w *WaitGroup) Wait()
Constants ¶
This section is empty.
Variables ¶
View Source
var WaitGroupKey = waitGroupKey{}
Functions ¶
Types ¶
type BacklogSize ¶
type BacklogSize int
func (BacklogSize) IsConsumeOption ¶
func (BacklogSize) IsConsumeOption()
type ConsumeOption ¶
type ConsumeOption interface {
IsConsumeOption()
}
type WaitGroup ¶
type WaitGroup struct {
// contains filtered or unexported fields
}
func GetWaitGroup ¶
func NewWaitGroup ¶
Click to show internal directories.
Click to hide internal directories.