Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for cancelling (0.14 sec)

  1. okhttp-coroutines/README.md

    but uses the standard Dispatcher in OkHttp. This means
    that by default Kotlin's Dispatchers are not used.
    
    Cancellation if implemented sensibly in both directions.
    Cancelling a coroutine scope, will cancel the call.
    Cancelling a call, will throw a CancellationException
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Nov 09 15:47:27 UTC 2023
    - 609 bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/CancellationSpec.groovy

            settingsFile << '''
    rootProject.name = 'cancelling'
    '''
        }
    
        void setupCancelInSettingsBuild() {
            settingsFile << waitForCancel()
            buildFile << """
    throw new RuntimeException("should not run")
    """
        }
    
        void setupCancelInConfigurationBuild() {
            settingsFile << '''
    include 'sub'
    rootProject.name = 'cancelling'
    '''
            buildFile << waitForCancel()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. pkg/controller/tainteviction/taint_eviction.go

    	// getMinTolerationTime returns negative value to denote infinite toleration.
    	if minTolerationTime < 0 {
    		logger.V(4).Info("Current tolerations for pod tolerate forever, cancelling any scheduled deletion", "pod", podNamespacedName.String())
    		tc.cancelWorkWithEvent(logger, podNamespacedName)
    		return
    	}
    
    	startTime := now
    	triggerTime := startTime.Add(minTolerationTime)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/ContinuousBuildCancellationCrossVersionSpec.groovy

            runBuild {
                succeeds()
                cancel()
            }
    
            then:
            !result.output.contains("ctrl-d")
            result.output.contains(waitingMessage)
        }
    
        def "after cancelling a continuous build, we can subsequently run another"() {
            when:
            withConnection {
                runBuild {
                    succeeds()
                    cancel()
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r21/CancellationCrossVersionSpec.groovy

    import org.gradle.tooling.model.gradle.GradleBuild
    
    class CancellationCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            settingsFile << '''
    rootProject.name = 'cancelling'
    '''
        }
    
        def "early cancel stops the build before beginning"() {
            buildFile << """
    throw new GradleException("should not run")
    """
            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)
  6. pkg/controller/tainteviction/timed_workers.go

    func (q *TimedWorkerQueue) CancelWork(logger klog.Logger, key string) bool {
    	q.Lock()
    	defer q.Unlock()
    	worker, found := q.workers[key]
    	result := false
    	if found {
    		logger.V(4).Info("Cancelling TimedWorkerQueue item", "item", key, "time", time.Now())
    		if worker != nil {
    			result = true
    			worker.Cancel()
    		}
    		delete(q.workers, key)
    	}
    	return result
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:23:56 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/MoreExecutors.java

            return Callables.threadRenaming(command, nameSupplier);
          }
        };
      }
    
      /**
       * Shuts down the given executor service gradually, first disabling new submissions and later, if
       * necessary, cancelling remaining tasks.
       *
       * <p>The method takes the following steps:
       *
       * <ol>
       *   <li>calls {@link ExecutorService#shutdown()}, disabling acceptance of new submitted tasks.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 43.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/SocketConnection.java

                // block until ready for write operations
                selector.select();
                // cancel OP_WRITE selection
                key.cancel();
                // complete cancelling key
                selector.selectNow();
            }
    
            @Override
            public void close() throws IOException {
                if (selector != null) {
                    selector.close();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClient.java

                    } else {
                        return object;
                    }
                }
            } finally {
                // Stop cancelling before sending end-of-input
                CompositeStoppable.stoppable(cancelForwarder, inputForwarder).stop();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go

    			// soon as the request is processed from the APF point of view.
    			//
    			// Note that we explicitly do NOT call the actuall handler using that context
    			// to avoid cancelling request too early.
    			handleCtx, handleCtxCancel := h.newReqWaitCtxFn(ctx)
    			defer handleCtxCancel()
    
    			// Note that Handle will return irrespective of whether the request
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top