- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestClosed (0.27 sec)
-
test/closedchan.go
testasync1, testasync2, testasync3, testasync4, } func main() { for _, mk := range mks { test1(mk(closedsync())) } for _, testclosed := range testcloseds { for _, mk := range mks { testclosed(mk(closedasync())) } } var ch chan int shouldPanic(func() { close(ch) }) ch = make(chan int) close(ch) shouldPanic(func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:48:57 UTC 2012 - 5.8K bytes - Viewed (0) -
pkg/queue/instance_test.go
close(stop) }) select { case <-time.After(200 * time.Millisecond): t.Error("close stop, method exit timeout.") case <-signal: t.Log("queue return.") } } func TestClosed(t *testing.T) { t.Run("immediate close", func(t *testing.T) { stop := make(chan struct{}) q := NewQueue(0) go q.Run(stop) close(stop) if err := WaitForClose(q, 10*time.Second); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jul 21 16:30:36 UTC 2023 - 3.4K bytes - Viewed (0)