MCPcopy Index your code
hub / github.com/coder/coder / closedWithin

Function closedWithin

provisionerd/provisionerd_test.go:39–48  ·  view source on GitHub ↗
(c chan struct{}, d time.Duration)

Source from the content-addressed store, hash-verified

37}
38
39func closedWithin(c chan struct{}, d time.Duration) func() bool {
40 return func() bool {
41 select {
42 case <-c:
43 return true
44 case <-time.After(d):
45 return false
46 }
47 }
48}
49
50func TestProvisionerd(t *testing.T) {
51 t.Parallel()

Callers 1

TestProvisionerdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected