Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 412 for dispatchTo (0.19 sec)

  1. guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

     * #enqueue enqueueing} and then {@linkplain #dispatch dispatching} events.
     *
     * <p>The API of this class is designed to make it easy to achieve the following properties
     *
     * <ul>
     *   <li>Multiple events for the same listener are never dispatched concurrently.
     *   <li>Events for the different listeners are dispatched concurrently.
     *   <li>All events for a given listener dispatch on the provided {@link #executor}.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/actor/Actor.java

    import org.gradle.internal.concurrent.ThreadSafe;
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.DispatchException;
    import org.gradle.internal.dispatch.MethodInvocation;
    
    /**
     * <p>An {@code Actor} dispatches method calls to a target object in a thread-safe manner. Methods are called either by
     * calling {@link Dispatch#dispatch(Object)} on the actor, or using the proxy object
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/event/ListenerBroadcastTest.groovy

            then:
            1 * dispatch1.dispatch(invocation)
            then:
            1 * dispatch2.dispatch(invocation)
            0 * _._
        }
    
        def 'visit listeners does not visit dispatch instances'() {
            def dispatch = Mock(Dispatch)
            def visitor = Mock(Action)
    
            given:
            broadcast.add(dispatch)
    
            when:
            broadcast.visitListeners(visitor)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/interfaces.go

    	// HasSynced returns true if the source has completed its initial sync.
    	HasSynced() bool
    }
    
    // Dispatcher dispatches evaluates an admission request against the currently
    // active hooks returned by the source.
    type Dispatcher[H Hook] interface {
    	// Dispatch a request to the policies. Dispatcher may choose not to
    	// call a hook, either because the rules of the hook does not match, or
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. src/runtime/debugcall.go

    	})
    }
    
    func debugCallWrap2(dispatch uintptr) {
    	// Call the dispatch function and trap panics.
    	var dispatchF func()
    	dispatchFV := funcval{dispatch}
    	*(*unsafe.Pointer)(unsafe.Pointer(&dispatchF)) = noescape(unsafe.Pointer(&dispatchFV))
    
    	var ok bool
    	defer func() {
    		if !ok {
    			err := recover()
    			debugCallPanicked(err)
    		}
    	}()
    	dispatchF()
    	ok = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MessageHub.java

                    rejectedMessageListener = DISCARD;
                }
                Dispatch<Object> dispatch;
                if (handler instanceof Dispatch) {
                    dispatch = Cast.uncheckedNonnullCast(handler);
                } else {
                    dispatch = DISCARD;
                }
                BoundedDispatch<Object> boundedDispatch;
                if (dispatch instanceof BoundedDispatch) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/eventbus/AsyncEventBus.java

        super("default", executor, Dispatcher.legacyAsync(), subscriberExceptionHandler);
      }
    
      /**
       * Creates a new AsyncEventBus that will use {@code executor} to dispatch events.
       *
       * @param executor Executor to use to dispatch events. It is the caller's responsibility to shut
       *     down the executor after the last event has been posted to this event bus.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 22 13:05:46 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/ReportStatusDispatcherTest.groovy

        def dispatcher = new ReportStatusDispatcher()
        def connection = Mock(Connection)
    
        def "ignores failed dispatch and does not receive"() {
            given:
            def message = new ReportStatus(UUID.randomUUID(), "TOKEN".bytes)
            connection.dispatch(message) >> { throw new RuntimeException("Cannot dispatch") }
    
            when:
            dispatcher.dispatch(connection, message)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/StopDispatcherTest.groovy

    public class StopDispatcherTest extends Specification {
    
        def dispatcher = new StopDispatcher()
        def connection = Mock(Connection)
    
        def "ignores failed dispatch and does not receive"() {
            given:
            def message = new Stop(UUID.randomUUID())
            connection.dispatch(message) >> { throw new RuntimeException("Cannot dispatch") }
    
            when:
            dispatcher.dispatch(connection, message)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/eventbus/AsyncEventBus.java

        super("default", executor, Dispatcher.legacyAsync(), subscriberExceptionHandler);
      }
    
      /**
       * Creates a new AsyncEventBus that will use {@code executor} to dispatch events.
       *
       * @param executor Executor to use to dispatch events. It is the caller's responsibility to shut
       *     down the executor after the last event has been posted to this event bus.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 22 13:05:46 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top