Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 812 for pcancel (0.15 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/CancellationCrossVersionSpec.groovy

                build.withCancellationToken(cancel.token())
                build.run(resultHandler)
                sync.waitForAllPendingCalls(resultHandler)
                cancel.cancel()
                sync.releaseAll()
                resultHandler.finished()
            }
    
            then:
            buildWasCancelled(resultHandler)
        }
    
        def "can cancel build during configuration phase"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r21/CancellationCrossVersionSpec.groovy

                build.forTasks('thing')
                build.withCancellationToken(cancel.token())
                build.run(resultHandler)
                resultHandler.finished()
                cancel.cancel()
            }
    
            then:
            noExceptionThrown()
        }
    
        def "early cancel stops model retrieval before beginning"() {
            def cancel = GradleConnector.newCancellationTokenSource()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/initialization/DefaultBuildCancellationTokenSpec.groovy

    class DefaultBuildCancellationTokenSpec extends Specification {
        def 'can cancel token'() {
            when:
            def token = new DefaultBuildCancellationToken()
    
            then:
            !token.cancellationRequested
    
            when:
            token.cancel()
    
            then:
            token.cancellationRequested
        }
    
        def 'cancel notifies callbacks'() {
            def token = new DefaultBuildCancellationToken()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 23 09:27:48 UTC 2015
    - 3.7K bytes
    - Viewed (0)
  4. cmd/namespace-lock.go

    type LockContext struct {
    	ctx    context.Context
    	cancel context.CancelFunc
    }
    
    // Context returns lock context
    func (l LockContext) Context() context.Context {
    	return l.ctx
    }
    
    // Cancel function calls cancel() function
    func (l LockContext) Cancel() {
    	if l.cancel != nil {
    		l.cancel()
    	}
    }
    
    // newNSLock - return a new name space lock map.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 05 23:56:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  5. pilot/cmd/pilot-agent/status/ready/probe_test.go

    )
    
    func TestEnvoyStatsCompleteAndSuccessful(t *testing.T) {
    	g := NewWithT(t)
    
    	server := testserver.CreateAndStartServer(liveServerStats)
    	defer server.Close()
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	probe := Probe{AdminPort: uint16(server.Listener.Addr().(*net.TCPAddr).Port)}
    	probe.Context = ctx
    
    	err := probe.Check()
    
    	g.Expect(err).NotTo(HaveOccurred())
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. src/net/cgo_unix_test.go

    	_, err := cgoLookupIP(ctx, "ip", "localhost")
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func TestCgoLookupIPWithCancel(t *testing.T) {
    	defer dnsWaitGroup.Wait()
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	_, err := cgoLookupIP(ctx, "ip", "localhost")
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func TestCgoLookupPort(t *testing.T) {
    	defer dnsWaitGroup.Wait()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 16:28:59 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/Futures.java

        }
    
        private void recordCompletion() {
          if (incompleteOutputCount.decrementAndGet() == 0 && wasCancelled) {
            for (ListenableFuture<? extends T> toCancel : inputFutures) {
              if (toCancel != null) {
                toCancel.cancel(shouldInterrupt);
              }
            }
          }
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 64.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonCancelForwarderTest.groovy

            receivedCommand() instanceof Cancel
        }
    
        def forwarder
    
        def createForwarder() {
            forwarder = new DaemonCancelForwarder(dispatch, cancellationToken)
            forwarder.start()
        }
    
        def setup() {
            createForwarder()
        }
    
        def "cancel is forwarded when received before stop"() {
            when:
            cancellationToken.cancel()
            forwarder.stop()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. 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)
  10. src/context/benchmark_test.go

    			})
    			b.Run("Root=OpenCanceler", func(b *testing.B) {
    				for i := 0; i < b.N; i++ {
    					ctx, cancel := WithCancel(Background())
    					buildContextTree(ctx, d)
    					cancel()
    				}
    			})
    			b.Run("Root=ClosedCanceler", func(b *testing.B) {
    				for i := 0; i < b.N; i++ {
    					ctx, cancel := WithCancel(Background())
    					cancel()
    					buildContextTree(ctx, d)
    				}
    			})
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 02 00:44:24 UTC 2021
    - 3.8K bytes
    - Viewed (0)
Back to top