Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 215 for dispatchTo (0.36 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/Dispatch.java

     * limitations under the License.
     */
    package org.gradle.internal.dispatch;
    
    /**
     * A general purpose sink for a stream of messages.
     *
     * <p>Implementations are not required to be thread-safe.
     */
    public interface Dispatch<T> {
        /**
         * Dispatches the next message. Blocks until the messages has been accepted but generally does not wait for the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/sink/LogEventDispatcherTest.groovy

        }
    
        def "ERROR is dispatched to the stderr chain"() {
            when:
            dispatcher.onOutput(event(LogLevel.ERROR))
    
            then:
            0 * stdoutChain.onOutput(_)
            1 * stderrChain.onOutput(_)
        }
    
        def "event without log level is dispatched to both chains"() {
            when:
            dispatcher.onOutput(event(null))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

    import okhttp3.internal.threadFactory
    
    /**
     * Policy on when async requests are executed.
     *
     * Each dispatcher uses an [ExecutorService] to run calls internally. If you supply your own
     * executor, it should be able to run [the configured maximum][maxRequests] number of calls
     * concurrently.
     */
    class Dispatcher() {
      internal val lock: ReentrantLock = ReentrantLock()
    
      /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. android/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)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/interfaces.go

    	Resource    schema.GroupVersionResource
    	Subresource string
    	Kind        schema.GroupVersionKind
    }
    
    // Dispatcher dispatches webhook call to a list of webhooks with admission attributes as argument.
    type Dispatcher interface {
    	// Dispatch a request to the webhooks. 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: Wed Mar 15 03:28:26 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top