- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,669 for done2 (0.04 sec)
-
src/log/syslog/syslog_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 12 16:09:24 UTC 2023 - 9.6K bytes - Viewed (0) -
pilot/pkg/xds/eds_test.go
}, }, } m.AddService(svc) localities := []string{ "region1/zone1/subzone1", "region1/zone1/subzone2", "region1/zone2/subzone1", "region2/zone1/subzone1", "region2/zone1/subzone2", "region2/zone2/subzone1", "region2/zone2/subzone2", } for i, locality := range localities { _, _ = i, locality m.AddInstance(&model.ServiceInstance{ Service: svc,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 20:58:47 UTC 2024 - 39.6K bytes - Viewed (0) -
src/sync/waitgroup_test.go
} }() wg := &WaitGroup{} wg.Add(1) wg.Done() wg.Done() t.Fatal("Should panic") } func TestWaitGroupRace(t *testing.T) { // Run this test for about 1ms. for i := 0; i < 1000; i++ { wg := &WaitGroup{} n := new(int32) // spawn goroutine 1 wg.Add(1) go func() { atomic.AddInt32(n, 1) wg.Done() }() // spawn goroutine 2 wg.Add(1) go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 14 17:38:39 UTC 2021 - 3K bytes - Viewed (0) -
test/fixedbugs/issue46725.go
const Jenny = 8675309 s := [10]*T{{Jenny}} done := make(chan struct{}) runtime.SetFinalizer(s[0], func(p *T) { close(done) }) var h, _ interface{} = g(s[:]) if wait(done) { panic("GC'd early") } if h.([]*T)[0][0] != Jenny { panic("lost Jenny's number") } if !wait(done) { panic("never GC'd") } } func wait(done <-chan struct{}) bool { for i := 0; i < 10; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 11 20:13:07 UTC 2022 - 818 bytes - Viewed (0) -
test/fixedbugs/issue25958.go
package p // Verify that the "must be receive" error for "case done:" appears // on the line of the case clause, not the line of the done declaration. func f(done chan struct{}) { select { case done: // ERROR "must be receive|expected .*<-.* or .*=|must be send or receive|not used" case (chan struct{})(done): // ERROR "must be receive|expected .*<-.* or .*=|must be send or receive" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 570 bytes - Viewed (0) -
cmd/xl-storage-disk-id-check.go
ctx, done, err := p.TrackDiskHealth(ctx, storageMetricListVols, "/") if err != nil { return nil, err } defer done(0, &err) return p.storage.ListVols(ctx) } func (p *xlStorageDiskIDCheck) StatVol(ctx context.Context, volume string) (vol VolInfo, err error) { ctx, done, err := p.TrackDiskHealth(ctx, storageMetricStatVol, volume) if err != nil { return vol, err } defer done(0, &err)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 33.4K bytes - Viewed (0) -
src/iter/iter.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 6.6K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedCodecTest.groovy
when: def bytes = encode { Encoder encoder -> encoder.encodeChunked {} encoder.writeString("done") } then: decode(bytes) { Decoder decoder -> decoder.decodeChunked {} assert decoder.readString() == "done" } } def "can encode and skip empty byte stream"() { when: def bytes = encode { Encoder encoder ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 5.2K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_test.go
"testing" "unsafe" ) func runParallel(N, iter int, f func()) { defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(int(N))) done := make(chan bool) for i := 0; i < N; i++ { go func() { for j := 0; j < iter; j++ { f() } done <- true }() } for i := 0; i < N; i++ { <-done } } func TestXadduintptr(t *testing.T) { N := 20 iter := 100000 if testing.Short() { N = 10
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.5K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
assertFalse(cos.done); assertTrue(cos.isInMemory()); cos.close(); assertFalse(cos.done); } @Test public void inFile() throws IOException { ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir); cos.write(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }); assertFalse(cos.done); assertFalse(cos.isInMemory());
Registered: Wed Jun 12 08:29:43 UTC 2024 - Last Modified: Mon Nov 14 21:05:19 UTC 2022 - 2K bytes - Viewed (0)