Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for handleStrings (0.19 sec)

  1. guava-tests/benchmark/com/google/common/eventbus/EventBusBenchmark.java

        eventBus.register(this);
      }
    
      @Benchmark
      void postStrings(int reps) {
        for (int i = 0; i < reps; i++) {
          eventBus.post("hello there");
        }
      }
    
      @Subscribe
      public void handleStrings(String string) {
        // Nothing to do here.
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java

      private final StringSubscriber s2 = new StringSubscriber("s2");
      private final ImmutableList<Subscriber> stringSubscribers =
          ImmutableList.of(
              subscriber(bus, s1, "handleString", String.class),
              subscriber(bus, s2, "handleString", String.class));
    
      private final ConcurrentLinkedQueue<Object> dispatchedSubscribers =
          Queues.newConcurrentLinkedQueue();
    
      private Dispatcher dispatcher;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 27 15:41:25 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

      private final StringSubscriber s2 = new StringSubscriber("s2");
      private final ImmutableList<Subscriber> stringSubscribers =
          ImmutableList.of(
              subscriber(bus, s1, "handleString", String.class),
              subscriber(bus, s2, "handleString", String.class));
    
      private final ConcurrentLinkedQueue<Object> dispatchedSubscribers =
          Queues.newConcurrentLinkedQueue();
    
      private Dispatcher dispatcher;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 27 15:41:25 UTC 2022
    - 5.6K bytes
    - Viewed (0)
Back to top