- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 393 for cancels (0.21 sec)
-
src/context/x_test.go
checkValues("after timeout") } else { cancel := cancels[r.Intn(len(cancels))] cancel() select { case <-ctx.Done(): default: errorf("ctx should be canceled") } checkValues("after cancel") } } func TestWithCancelCanceledParent(t *testing.T) { parent, pcancel := WithCancelCause(Background()) cause := fmt.Errorf("Because!") pcancel(cause) c, _ := WithCancel(parent)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 26.3K bytes - Viewed (0) -
src/context/context.go
// Calling cancel with nil sets the cause to Canceled. // // Example use: // // ctx, cancel := context.WithCancelCause(parent) // cancel(myError) // ctx.Err() // returns context.Canceled // context.Cause(ctx) // returns myError func WithCancelCause(parent Context) (ctx Context, cancel CancelCauseFunc) { c := withCancel(parent) return c, func(cause error) { c.cancel(true, Canceled, cause) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 23.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt
else -> Socket(route.proxy) } this.rawSocket = rawSocket // Handle the race where cancel() precedes connectSocket(). We don't want to miss a cancel. if (canceled) { throw IOException("canceled") } rawSocket.soTimeout = socketReadTimeoutMillis try {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 18.6K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DistributionInstaller.java
return install.createDist(wrapperConfiguration); } /** * Cancels the current installation, if running. */ public void cancel() { synchronized (lock) { cancelled = true; lock.notifyAll(); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 9.8K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy
sync.waitForAllPendingCalls(resultHandler) cancellation.cancel() Thread.sleep(200) // The daemon seems to drop messages arriving the same time connector.disconnect() resultHandler.finished() then: resultHandler.assertFailedWith(BuildCancelledException) } def "can call cancel after disconnect"() { buildFile.text = """ task hang {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 11.5K bytes - Viewed (0) -
src/os/signal/signal_test.go
Notify(c1, syscall.SIGWINCH) Notify(c2, syscall.SIGHUP) quiesce() } // Test that Reset cancels registration for listed signals on all channels. func TestReset(t *testing.T) { testCancel(t, false) } // Test that Ignore cancels registration for listed signals on all channels. func TestIgnore(t *testing.T) { testCancel(t, true) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 27.2K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/ProcessCrashHandlingIntegrationTest.groovy
client.kill() then: daemons.daemon.becomesCanceled() and: daemons.daemon.stops() } def "daemon is idle after the client disconnects and build cancels in a timely manner"() { buildFile << """ task block { doLast { ${server.callFromBuild("block")} } } """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 12.1K bytes - Viewed (0) -
internal/logger/target/kafka/kafka.go
if err != nil { atomic.AddInt64(&h.failedMessages, 1) return } // Delete the event from store. return h.store.Del(key.Name) } // Cancel - cancels the target func (h *Target) Cancel() { // If queuestore is configured, cancel it's context to // stop the replay go-routine. if h.store != nil { h.storeCtxCancel() } // Set logch to nil and close it.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jun 02 03:03:39 UTC 2024 - 10.2K bytes - Viewed (0) -
pkg/kubelet/cm/dra/plugin/noderesources.go
// and the gRPC stream that is used to retrieve that. The context // used by that stream can be canceled separately to stop // the monitoring. type activePlugin struct { // cancel is the function which cancels the monitorPlugin goroutine // for this plugin. cancel func(reason error) // resources is protected by the nodeResourcesController read/write lock.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 20:12:53 UTC 2024 - 16.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/EventListener.kt
) { } /** * Invoked when a call is canceled. * * Like all methods in this interface, this is invoked on the thread that triggered the event. But * while other events occur sequentially; cancels may occur concurrently with other events. For * example, thread A may be executing [responseBodyStart] while thread B executes [canceled]. * Implementations must support such concurrent calls. *
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15.2K bytes - Viewed (0)