- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for DelayQueueBuffer (0.15 sec)
-
pkg/queue/delay_test.go
} mu.Unlock() } func TestDelayQueuePushBeforeRun(t *testing.T) { // This is a regression test to ensure we can push while Run() is called without a race dq := NewDelayed(DelayQueueBuffer(0)) st := make(chan struct{}) go func() { // Enqueue a bunch until we stop for { select { case <-st: return default: } dq.Push(func() error { return nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 06:27:31 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/queue/delay.go
// DelayQueueOption configure the behavior of the queue. Must be applied before Run. type DelayQueueOption func(*delayQueue) // DelayQueueBuffer sets maximum number of tasks awaiting execution. If this limit is reached, Push and PushDelayed // will block until there is room. func DelayQueueBuffer(bufferSize int) DelayQueueOption { return func(queue *delayQueue) { if queue.enqueue != nil { close(queue.enqueue) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 06:27:31 UTC 2023 - 6.7K bytes - Viewed (0) -
security/pkg/nodeagent/cache/secretcache.go
watcher, err := fsnotify.NewWatcher() if err != nil { return nil, err } ret := &SecretManagerClient{ queue: queue.NewDelayed(queue.DelayQueueBuffer(0)), caClient: caClient, configOptions: options, existingCertificateFile: security.SdsCertificateConfig{ CertificatePath: options.CertChainFilePath, PrivateKeyPath: options.KeyFilePath,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 04 08:29:46 UTC 2024 - 28.2K bytes - Viewed (0)