Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 340 for event (0.12 sec)

  1. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("The dead event should wrap the original event.", EVENT, events.get(0).getEvent());
      }
    
      public void testDeadEventPosting() {
        GhostCatcher catcher = new GhostCatcher();
        bus.register(catcher);
    
        bus.post(new DeadEvent(this, EVENT));
    
        List<DeadEvent> events = catcher.getEvents();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("The dead event should wrap the original event.", EVENT, events.get(0).getEvent());
      }
    
      public void testDeadEventPosting() {
        GhostCatcher catcher = new GhostCatcher();
        bus.register(catcher);
    
        bus.post(new DeadEvent(this, EVENT));
    
        List<DeadEvent> events = catcher.getEvents();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

        queue.enqueue(THROWING_EVENT);
        queue.enqueue(incrementingEvent(counters, listener, 2));
        queue.enqueue(THROWING_EVENT);
        queue.enqueue(incrementingEvent(counters, listener, 3));
        queue.enqueue(THROWING_EVENT);
        queue.enqueue(incrementingEvent(counters, listener, 4));
        queue.enqueue(THROWING_EVENT);
        assertEquals(0, counters.size());
        queue.dispatch();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/eventbus/outside/DeepInterfaceTest.java

      }
    
      public void testAnnotatedIn1() {
        assertThat(getSubscriber().annotatedIn1Events).contains(EVENT);
      }
    
      public void testAnnotatedIn2() {
        assertThat(getSubscriber().annotatedIn2Events).contains(EVENT);
      }
    
      public void testAnnotatedIn1And2() {
        assertThat(getSubscriber().annotatedIn1And2Events).contains(EVENT);
      }
    
      public void testAnnotatedIn1And2AndClass() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/eventbus/Subscriber.java

        this.executor = bus.executor();
      }
    
      /** Dispatches {@code event} to this subscriber using the proper executor. */
      final void dispatchEvent(Object event) {
        executor.execute(
            () -> {
              try {
                invokeSubscriberMethod(event);
              } catch (InvocationTargetException e) {
                bus.handleSubscriberException(e.getCause(), context(event));
              }
            });
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 4.7K bytes
    - Viewed (0)
  6. .github/workflows/ci.yml

          - name: 'Integration Test'
            if: matrix.java == 11
            shell: bash
            run: util/gradle_integration_tests.sh
    
      publish_snapshot:
        name: 'Publish snapshot'
        needs: test
        if: github.event_name == 'push' && github.repository == 'google/guava'
        runs-on: ubuntu-latest
        steps:
          - name: 'Check out repository'
            uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:33:50 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/eventbus/outside/DeepInterfaceTest.java

      }
    
      public void testAnnotatedIn1() {
        assertThat(getSubscriber().annotatedIn1Events).contains(EVENT);
      }
    
      public void testAnnotatedIn2() {
        assertThat(getSubscriber().annotatedIn2Events).contains(EVENT);
      }
    
      public void testAnnotatedIn1And2() {
        assertThat(getSubscriber().annotatedIn1And2Events).contains(EVENT);
      }
    
      public void testAnnotatedIn1And2AndClass() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractService.java

          terminatedEvent(NEW);
      private static final ListenerCallQueue.Event<Listener> TERMINATED_FROM_STARTING_EVENT =
          terminatedEvent(STARTING);
      private static final ListenerCallQueue.Event<Listener> TERMINATED_FROM_RUNNING_EVENT =
          terminatedEvent(RUNNING);
      private static final ListenerCallQueue.Event<Listener> TERMINATED_FROM_STOPPING_EVENT =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/eventbus/outside/AnnotatedNotAbstractInSuperclassTest.java

      }
    
      public void testOverriddenNotAnnotatedInSubclass() {
        assertThat(getSubscriber().overriddenNotAnnotatedInSubclassEvents).contains(EVENT);
      }
    
      public void testDifferentlyOverriddenNotAnnotatedInSubclass() {
        assertThat(getSubscriber().differentlyOverriddenNotAnnotatedInSubclassGoodEvents)
            .contains(EVENT);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/eventbus/EventBus.java

       *
       * @param event event to post.
       */
      public void post(Object event) {
        Iterator<Subscriber> eventSubscribers = subscribers.getSubscribers(event);
        if (eventSubscribers.hasNext()) {
          dispatcher.dispatch(event, eventSubscribers);
        } else if (!(event instanceof DeadEvent)) {
          // the event had no subscribers and was not itself a DeadEvent
          post(new DeadEvent(this, event));
        }
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
Back to top