Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,742 for _top (0.13 sec)

  1. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonExpirationTest.groovy

            clientsManager.release(client3)
    
            when:
            expiration.attemptToRelease(MemoryAmount.ofGigaBytes(4).bytes)
    
            then:
            1 * client1.stop()
            1 * client2.stop()
            0 * client3.stop()
    
            and:
            reserveIdleClient(oneGbOptions) == client3
        }
    
        def "expires all idle daemons when requested memory is equal than what all daemons consume"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. pilot/pkg/server/instance.go

    	i.RunComponent(name, func(stop <-chan struct{}) error {
    		go func() {
    			err := task(stop)
    			if err != nil {
    				logComponentError(name, err)
    			}
    		}()
    		return nil
    	})
    }
    
    func (i *instance) RunComponentAsyncAndWait(name string, task Component) {
    	i.RunComponent(name, func(stop <-chan struct{}) error {
    		i.requiredTerminations.Add(1)
    		go func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. src/time/tick_test.go

    		})
    	}
    }
    
    type timer interface {
    	Stop() bool
    	Reset(Duration) bool
    }
    
    // tickerTimer is a Timer with Reset and Stop methods that return bools,
    // to have the same signatures as Timer.
    type tickerTimer struct {
    	*Ticker
    	stopped bool
    }
    
    func (t *tickerTimer) Stop() bool {
    	pending := !t.stopped
    	t.stopped = true
    	t.Ticker.Stop()
    	return pending
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/integTest/groovy/org/gradle/internal/remote/UnicastMessagingIntegrationTest.groovy

            thread.blockUntil.received
            server.stop()
            client.stop()
    
            then:
            1 * service.doStuff("1")
            1 * service.doStuff("2")
            1 * service.doStuff("3")
            1 * service.doStuff("4") >> { instant.received }
    
            cleanup:
            client?.stop()
            server?.stop()
        }
    
        def "client can send messages to server"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:43 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. pkg/queue/instance_test.go

    		t.Error("close stop, method exit timeout.")
    	case <-signal:
    		t.Log("queue return.")
    	}
    }
    
    func TestClosed(t *testing.T) {
    	t.Run("immediate close", func(t *testing.T) {
    		stop := make(chan struct{})
    		q := NewQueue(0)
    		go q.Run(stop)
    		close(stop)
    		if err := WaitForClose(q, 10*time.Second); err != nil {
    			t.Error(err)
    		}
    	})
    	t.Run("no tasks after close", func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/processors/MaxNParallelTestClassProcessorTest.groovy

            1 * asyncProcessor1.startProcessing(asyncResultProcessor)
            1 * asyncProcessor1.processTestClass(test)
    
            when:
            processor.stop()
    
            then:
            1 * asyncProcessor1.stop()
            1 * actor1.stop()
            1 * resultProcessorActor.stop()
        }
    
        def startsMultipleProcessorsOnDemandAndStopsAtEnd() {
            TestClassRunInfo test = Mock()
            TestClassProcessor processor1 = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubTest.groovy

            then:
            IllegalStateException e = thrown()
            e.message == 'Cannot add connection, as <hub> has been stopped.'
        }
    
        def "stop and request stop do nothing when already stopped"() {
            when:
            hub.stop()
            hub.stop()
            hub.requestStop()
    
            then:
            0 * _._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  8. src/iter/iter.go

    // next and stop.
    //
    // Next returns the next value in the sequence
    // and a boolean indicating whether the value is valid.
    // When the sequence is over, next returns the zero V and false.
    // It is valid to call next after reaching the end of the sequence
    // or after calling stop. These calls will continue
    // to return the zero V and false.
    //
    // Stop ends the iteration. It must be called when the caller is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. pkg/kube/kclient/crdwatcher.go

    // Run starts the controller. This must be called.
    func (c *crdWatcher) Run(stop <-chan struct{}) {
    	c.mutex.Lock()
    	if c.stop != nil {
    		// Run already called. Because we call this from client.RunAndWait this isn't uncommon
    		c.mutex.Unlock()
    		return
    	}
    	c.stop = stop
    	c.mutex.Unlock()
    	kube.WaitForCacheSync("crd watcher", stop, c.crds.HasSynced)
    	c.queue.Run(stop)
    	c.crds.ShutdownHandlers()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. pilot/pkg/config/memory/monitor_test.go

    	// Regression test to ensure no race conditions during monitor shutdown
    	store := memory.Make(collections.Mocks)
    	m := memory.NewMonitor(store)
    	stop := make(chan struct{})
    	go m.Run(stop)
    	m.ScheduleProcessEvent(memory.ConfigEvent{})
    	close(stop)
    	m.ScheduleProcessEvent(memory.ConfigEvent{})
    }
    
    func TestEventConsistency(t *testing.T) {
    	store := memory.Make(collections.Mocks)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 01 01:34:15 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top