Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultWorkerCount = 1000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentRandomQueue ¶
type ConcurrentRandomQueue[T any] struct { // contains filtered or unexported fields }
ConcurrentRandomQueue is a generic, thread-safe queue that pops random elements in O(1) time.
func NewConcurrentRandomQueue ¶
func NewConcurrentRandomQueue[T any](seed int64, capacityHint int) *ConcurrentRandomQueue[T]
func (*ConcurrentRandomQueue[T]) Pop ¶
func (q *ConcurrentRandomQueue[T]) Pop() *T
func (*ConcurrentRandomQueue[T]) Push ¶
func (q *ConcurrentRandomQueue[T]) Push(item T)
type Option ¶
type Option func(*Scheduler)
func WithDeterministicCQID ¶
func WithInvocationID ¶
func WithWorkerCount ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.