Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,888 for _top (0.06 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DefaultDaemonConnectionTest.groovy

            daemonConnection.stop()
    
            then:
            0 * handler._
        }
    
        def "does not notify disconnect handler on stop"() {
            Runnable handler = Mock()
    
            when:
            daemonConnection.onDisconnect(handler)
            daemonConnection.stop()
    
            then:
            0 * handler._
        }
    
        def "can stop after disconnect handler fails"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/async/ServiceLifecycleTest.groovy

                }
            }
    
            then:
            instant.action1Done > instant.action2Done
        }
    
        def "can stop multiple times"() {
            when:
            lifecycle.stop()
            lifecycle.stop()
            lifecycle.requestStop()
            lifecycle.requestStop()
            lifecycle.stop()
    
            then:
            noExceptionThrown()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:55 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/processors/RestartEveryNTestClassProcessorTest.groovy

            then:
            1 * delegate.processTestClass(test2)
            then:
            1 * delegate.stop()
            0 * _._
        }
    
        def "stopNow does nothing after stop completed"() {
            when:
            processor.startProcessing(resultProcessor)
            processor.processTestClass(test1)
            processor.stop()
    
            then:
            1 * factory.create() >> delegate
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonStopClient.java

            //iterate and stop all daemons
            int numStopped = 0;
            while (connection != null && !timer.hasExpired()) {
                try {
                    seen.add(connection.getDaemon().getUid());
                    LOGGER.debug("Requesting daemon {} stop now", connection.getDaemon());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. pkg/revisions/default_watcher_test.go

    	}
    }
    
    func TestNoDefaultRevision(t *testing.T) {
    	stop := make(chan struct{})
    	client := kube.NewFakeClient()
    	w := NewDefaultWatcher(client, "default")
    	client.RunAndWait(stop)
    	go w.Run(stop)
    	// if have no default tag for some reason, should return ""
    	expectRevision(t, w, "")
    	close(stop)
    }
    
    func TestDefaultRevisionChanges(t *testing.T) {
    	stop := test.NewStop(t)
    	client := kube.NewFakeClient()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 23 17:46:59 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. pkg/test/framework/components/echo/util/traffic/generator.go

    			}
    		}
    	}()
    	return g
    }
    
    func (g *generator) Stop() Result {
    	// Trigger the generator to stop.
    	close(g.stop)
    
    	// Wait for the generator to exit.
    	t := time.NewTimer(g.StopTimeout)
    	select {
    	case <-g.stopped:
    		t.Stop()
    		if g.result.TotalRequests == 0 {
    			g.t.Fatal("no requests completed before stopping the traffic generator")
    		}
    		return g.result
    	case <-t.C:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 12 22:50:35 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/AsyncDispatchTest.groovy

                parallel.syncAt(3)
            }
    
            dispatch.stop()
    
            then:
            target1.receivedMessages == ['message1', 'message3']
            target2.receivedMessages == ['message2']
        }
    
        def 'can stop from multiple threads'() {
            when:
            dispatch.dispatchTo(target1)
    
            parallel.start {
                dispatch.stop()
            }
            parallel.start {
                dispatch.stop()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  8. pkg/kube/multicluster/cluster.go

    		if !kube.WaitForCacheSync("cluster"+string(c.ID), c.stop, h.HasSynced) {
    			log.Warnf("remote cluster %s failed to sync handler", c.ID)
    			return
    		}
    	}
    
    	c.initialSync.Store(true)
    }
    
    // Stop closes the stop channel, if is safe to be called multi times.
    func (c *Cluster) Stop() {
    	select {
    	case <-c.stop:
    		return
    	default:
    		close(c.stop)
    	}
    }
    
    func (c *Cluster) HasSynced() bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. pkg/util/async/runner.go

    func NewRunner(f ...func(stop chan struct{})) *Runner {
    	return &Runner{loopFuncs: f}
    }
    
    // Start begins running.
    func (r *Runner) Start() {
    	r.lock.Lock()
    	defer r.lock.Unlock()
    	if r.stop == nil {
    		c := make(chan struct{})
    		r.stop = &c
    		for i := range r.loopFuncs {
    			go r.loopFuncs[i](*r.stop)
    		}
    	}
    }
    
    // Stop stops running.
    func (r *Runner) Stop() {
    	r.lock.Lock()
    	defer r.lock.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 29 06:37:00 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    	//
    	// Only the consumer should call Stop(), not the producer. If the producer
    	// errors and needs to stop the watch prematurely, it should instead send
    	// an error event and close the result channel.
    	Stop()
    
    	// ResultChan returns a channel which will receive events from the event
    	// producer. If an error occurs or Stop() is called, the producer must
    	// close this channel and release any resources used by the watch.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
Back to top