- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,742 for _top (0.2 sec)
-
test/fixedbugs/issue59680.go
} } func (b *B) startit() chan<- struct{} { stop := make(chan struct{}) b.wg.Add(1) go func() { defer b.wg.Done() var v uint64 for { select { case <-stop: b.v = v return case <-time.After(1 * time.Millisecond): r, err := b.f() if err != nil { panic("bad") } v = r } } }() return stop } var S, G int //go:noinline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 05 21:04:38 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/DefaultFileLockContentionHandlerTest.groovy
when: handler.reservePort() handler.start(10, {}) handler.stop() then: 1 * factory.create(_ as String) >> lockRequestListener 1 * factory.create(_ as String) >> releaseLockActionExecutor 1 * lockRequestListener.stop() 1 * releaseLockActionExecutor.stop() } def "stopping is safe even if the handler was not initialized"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:49 UTC 2024 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/timer.go
// The channel should not be waited on after Stop() is invoked. It is allowed // to cache the returned value of C() for the lifetime of the Timer. C() <-chan time.Time // Next is invoked by wait functions to signal timers that the next interval // should begin. You may only use Next() if you have drained the channel C(). // You should not call Next() after Stop() is invoked. Next()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 19:14:11 UTC 2023 - 2.9K bytes - Viewed (0) -
src/os/signal/signal.go
func Reset(sig ...os.Signal) { cancel(sig, disableSignal) } // Stop causes package signal to stop relaying incoming signals to c. // It undoes the effect of all prior calls to [Notify] using c. // When Stop returns, it is guaranteed that c will receive no more signals. func Stop(c chan<- os.Signal) { handlers.Lock() h := handlers.m[c] if h == nil { handlers.Unlock() return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/ExclusiveCacheAccessingWorkerTest.groovy
start(cacheAccessWorker) async { thread.blockUntil.waiting cacheAccessWorker.stop() } then: def e = thrown(RuntimeException) e == failure cleanup: cacheAccessWorker?.stop() } def "stop rethrows action failure"() { def failure = new RuntimeException() cacheAccessWorker.enqueue { throw failure }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/DefaultStandardOutputRedirectorTest.groovy
when: redirector.redirectStandardErrorTo(stdErrListener) redirector.start() redirector.stop() redirector.redirectStandardOutputTo(stdOutListener) redirector.start() System.out.println('this is stdout') System.err.println('this is stderr') redirector.stop() then: 1 * stdOutListener.onOutput('this is stdout' + EOL) 0 * stdOutListener._
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubBackedObjectConnectionTest.groovy
when: connectionBuilder.addIncoming(Worker, worker) connectionBuilder.connect() connection.stop() connectionBuilder.stop() then: 1 * worker.doStuff("param 1") 0 * worker._ cleanup: connection?.stop() connectionBuilder?.stop() } def "cannot add incoming message handler on established connections"() { def worker = Mock(Worker)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 4K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/actor/internal/DefaultActorFactorySpec.groovy
proxy.doStuff('param') operation.stop { factory.stop() } then: operation.stop.end > instant.actionFinished } def cannotDispatchToBlockingActorAfterItHasBeenStopped() { def actor = factory.createBlockingActor(target) def proxy = actor.getProxy(TargetObject.class) given: actor.stop() when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 8.1K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/DefaultLoggingManagerTest.groovy
0 * stdOutLoggingSystem._ 0 * stdErrLoggingSystem._ when: loggingManager.stop() then: 1 * stdOutLoggingSystem.restore(stdOutSnapshot) 1 * stdErrLoggingSystem.restore(stdErrSnapshot) } public void "can start and stop with system capture enabled"() { loggingManager.captureSystemSources()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 15.8K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultFileVisitDetails.java
private final AtomicBoolean stop; public DefaultFileVisitDetails(File file, RelativePath relativePath, AtomicBoolean stop, Chmod chmod, Stat stat) { super(file, relativePath, chmod, stat); this.stop = stop; } @Override public void stopVisiting() { stop.set(true); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.3K bytes - Viewed (0)