Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,382 for stop (0.09 sec)

  1. platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/launcher/daemon/protocol/Stop.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.launcher.daemon.protocol;
    
    import java.util.UUID;
    
    public class Stop extends Command {
        public Stop(UUID identifier, byte[] token) {
            super(identifier, token);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 04:50:46 UTC 2024
    - 813 bytes
    - Viewed (0)
  2. src/internal/trace/testdata/testprog/many-start-stop.go

    			log.Fatalf("failed to start tracing: %v", err)
    		}
    		runtime.GC()
    		trace.Stop()
    	}
    
    	// Start tracing again, this time writing out the result.
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatalf("failed to start tracing: %v", err)
    	}
    	runtime.GC()
    	trace.Stop()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 786 bytes
    - Viewed (0)
  3. src/internal/trace/testdata/testprog/stress-start-stop.go

    			w = os.Stdout
    		} else {
    			w = new(bytes.Buffer)
    		}
    		if err := trace.Start(w); err != nil {
    			log.Fatalf("failed to start tracing: %v", err)
    		}
    		time.Sleep(time.Millisecond)
    		trace.Stop()
    	}
    	<-outerDone
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/iter/pull_test.go

    func TestPullImmediateStop(t *testing.T) {
    	next, stop := Pull(panicSeq())
    	stop()
    	// Make sure we don't panic if we try to call next or stop.
    	if _, ok := next(); ok {
    		t.Fatal("next returned true after iterator was stopped")
    	}
    }
    
    func TestPull2ImmediateStop(t *testing.T) {
    	next, stop := Pull2(panicSeq2())
    	stop()
    	// Make sure we don't panic if we try to call next or stop.
    	if _, _, ok := next(); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. pilot/pkg/server/instance_test.go

    	inst.RunComponent("fake", func(stop <-chan struct{}) error {
    		return expected
    	})
    
    	stop := newReclosableChannel()
    	t.Cleanup(stop.Close)
    	g.Expect(inst.Start(stop.c)).To(Equal(expected))
    }
    
    func TestStartWithNoError(t *testing.T) {
    	g := NewWithT(t)
    
    	inst := server.New()
    	c := newFakeComponent(0, test.NewStop(t))
    	inst.RunComponent("fake", c.Run)
    
    	stop := newReclosableChannel()
    	t.Cleanup(stop.Close)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 23:02:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/time/tick_test.go

    		for range count - count/2 {
    			<-ticker.C
    		}
    		ticker.Stop()
    		t1 := Now()
    		dt := t1.Sub(t0)
    		target := 3 * delta * Duration(count/2)
    		slop := target * 3 / 10
    		if dt < target-slop || dt > target+slop {
    			errs = append(errs, fmt.Sprintf("%d %s ticks then %d %s ticks took %s, expected [%s,%s]", count/2, delta, count/2, delta*2, dt, target-slop, target+slop))
    			if dt > target+slop {
    				// System may be overloaded; sleep a bit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/inet/TcpConnectorTest.groovy

            thread.blockUntil.connected
            operation.stop {
                acceptor.stop()
            }
    
            then:
            operation.stop.end > instant.actionFinished
    
            cleanup:
            acceptor?.stop()
            connection?.stop()
        }
    
        def "can receive message from peer after peer has closed connection"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/fake.go

    	}
    	cleanupStop := false
    	stop := opts.Stop
    	if stop == nil {
    		// If we created the stop, clean it up. Otherwise, caller is responsible
    		cleanupStop = true
    		stop = make(chan struct{})
    	}
    	f := namespace.NewDiscoveryNamespacesFilter(
    		kclient.New[*corev1.Namespace](opts.Client),
    		opts.MeshWatcher,
    		stop,
    	)
    	kubelib.SetObjectFilter(opts.Client, f)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/CompositeStoppableTest.groovy

            when:
            stoppable.stop()
    
            then:
            1 * a.stop()
            1 * b.stop()
        }
    
        def stopsAllElementsWhenOneFailsToStop() {
            Stoppable a = Mock()
            Stoppable b = Mock()
            RuntimeException failure = new RuntimeException()
            stoppable.add(a)
            stoppable.add(b)
    
            when:
            stoppable.stop()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonClientsManagerTest.groovy

            manager.stop()
    
            then:
            noExceptionThrown()
            1 * client1.isFailed() >> true
            0 * client1.stop()
            1 * client2.stop()
        }
    
        def "can stop session-scoped clients"() {
            listenerManager = new DefaultListenerManager(Scope.BuildSession)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top