- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestUntilWithContext (0.13 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go
ch = make(chan struct{}) called := make(chan struct{}) go func() { Until(func() { called <- struct{}{} }, 0, ch) close(called) }() <-called close(ch) <-called } func TestUntilWithContext(t *testing.T) { ctx, cancel := context.WithCancel(context.TODO()) cancel() UntilWithContext(ctx, func(context.Context) { t.Fatal("should not have been invoked") }, 0)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 41.1K bytes - Viewed (0)