Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 797 for Dispatch (0.16 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/BroadcastDispatch.java

            }
    
            @Override
            public void dispatch(MethodInvocation message) {
            }
        }
    
        private static class SingletonDispatch<T> extends BroadcastDispatch<T> {
            private final Object handler;
            private final Dispatch<MethodInvocation> dispatch;
    
            SingletonDispatch(Class<T> type, Object handler, Dispatch<MethodInvocation> dispatch) {
                super(type);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 13:00:00 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/ExceptionTrackingFailureHandlerTest.groovy

            when:
            dispatch.dispatchFailed("message", failure)
            dispatch.stop()
    
            then:
            def e = thrown(DispatchException)
            e.cause == failure
            0 * logger._
        }
    
        def logsAnySubsequentFailures() {
            RuntimeException failure1 = new RuntimeException()
            RuntimeException failure2 = new RuntimeException('broken2')
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/AsyncDispatchTest.groovy

        private final AsyncDispatch<String> dispatch = new AsyncDispatch<String>(parallel.executor)
    
        def 'dispatches message to an idle target'() {
            when:
            dispatch.dispatchTo(target1)
            dispatch.dispatch('message1')
            dispatch.dispatch('message2')
            dispatch.stop()
    
            then:
            1 * target1.dispatch('message1')
            then:
            1 * target1.dispatch('message2')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/AbstractBroadcastDispatch.java

                case 1:
                    dispatch(invocation, dispatchers.get(0));
                    break;
                default:
                    dispatch(invocation, dispatchers.iterator());
                    break;
            }
        }
    
        /**
         * Dispatch an invocation to multiple handlers.
         */
        private void dispatch(MethodInvocation invocation, Iterator<? extends Dispatch<MethodInvocation>> handlers) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/runtime/asm_wasm.s

    	DISPATCH(runtime·call128, 128)
    	DISPATCH(runtime·call256, 256)
    	DISPATCH(runtime·call512, 512)
    	DISPATCH(runtime·call1024, 1024)
    	DISPATCH(runtime·call2048, 2048)
    	DISPATCH(runtime·call4096, 4096)
    	DISPATCH(runtime·call8192, 8192)
    	DISPATCH(runtime·call16384, 16384)
    	DISPATCH(runtime·call32768, 32768)
    	DISPATCH(runtime·call65536, 65536)
    	DISPATCH(runtime·call131072, 131072)
    	DISPATCH(runtime·call262144, 262144)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:26:51 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubTest.groovy

            def dispatch = hub.getOutgoing("channel", String)
            def failure = new RuntimeException()
    
            given:
            dispatch.dispatch("message 1")
            dispatch.dispatch("message 2")
    
            when:
            hub.addConnection(connection)
            thread.blockUntil.broken
    
            then:
            1 * outgoing.dispatch({ it.payload == "message 1" }) >> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/eventbus/AsyncEventBus.java

    /**
     * An {@link EventBus} that takes the Executor of your choice and uses it to dispatch events,
     * allowing dispatch to occur asynchronously.
     *
     * @author Cliff Biffle
     * @since 10.0
     */
    @ElementTypesAreNonnullByDefault
    public class AsyncEventBus extends EventBus {
    
      /**
       * Creates a new AsyncEventBus that will use {@code executor} to dispatch events. Assigns {@code
       * identifier} as the bus's name for logging purposes.
       *
    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/messaging/src/main/java/org/gradle/internal/dispatch/AsyncDispatch.java

                        dispatchMessages(dispatch);
                    } finally {
                        onDispatchThreadExit(dispatch);
                    }
                }
            });
            onDispatchThreadStart(dispatch, dispatcher);
            executor.execute(CurrentBuildOperationPreservingRunnable.wrapIfNeeded(dispatcher));
        }
    
        private void dispatchMessages(Dispatch<? super T> dispatch) {
            while (true) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/ProxyDispatchAdapterTest.groovy

     */
    
    package org.gradle.internal.dispatch
    
    import spock.lang.Specification
    
    import static org.gradle.util.Matchers.strictlyEquals
    
    class ProxyDispatchAdapterTest extends Specification {
        private final Dispatch<MethodInvocation> dispatch = Mock()
        private final ProxyDispatchAdapter<ProxyTest> adapter = new ProxyDispatchAdapter<ProxyTest>(dispatch, ProxyTest.class)
    
        def proxyForwardsToDispatch() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. 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)
Back to top