Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestQueueIdle (0.17 sec)

  1. src/cmd/go/internal/par/queue_test.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package par
    
    import (
    	"sync"
    	"testing"
    )
    
    func TestQueueIdle(t *testing.T) {
    	q := NewQueue(1)
    	select {
    	case <-q.Idle():
    	default:
    		t.Errorf("NewQueue(1) is not initially idle.")
    	}
    
    	started := make(chan struct{})
    	unblock := make(chan struct{})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 24 21:08:46 UTC 2020
    - 1.4K bytes
    - Viewed (0)
Back to top