Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BroadcastDispatch (0.22 sec)

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

     */
    public abstract class BroadcastDispatch<T> extends AbstractBroadcastDispatch<T> {
        private BroadcastDispatch(Class<T> type) {
            super(type);
        }
    
        public static <T> BroadcastDispatch<T> empty(Class<T> type) {
            return new EmptyDispatch<T>(type);
        }
    
        public Class<T> getType() {
            return 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/event/BroadcastDispatchTest.groovy

            def listener3 = Mock(Dispatch)
    
            expect:
            def dispatch1 = BroadcastDispatch.empty(TestListener)
            dispatch1.remove(listener1).is(dispatch1)
    
            def dispatch2 = BroadcastDispatch.empty(TestListener).add(listener1)
            dispatch2.remove(listener2).is(dispatch2)
    
            def dispatch3 = BroadcastDispatch.empty(TestListener).add(listener1).add(listener2)
            dispatch3.remove(listener3).is(dispatch3)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 14.9K bytes
    - Viewed (0)
Back to top