Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 250 for Listener (0.07 sec)

  1. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

              }
            };
        // Adding the listener to both futures guarantees that newFuture will always be set. Adding to
        // taskFuture guarantees completion if the callable is invoked, and adding to outputFuture
        // propagates cancellation if the callable has not yet been invoked.
        outputFuture.addListener(listener, directExecutor());
        taskFuture.addListener(listener, directExecutor());
    
        return outputFuture;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer: MockHttp2Peer,
        pushObserver: PushObserver = IGNORE,
        listener: Http2Connection.Listener = Http2Connection.Listener.REFUSE_INCOMING_STREAMS,
      ): Http2Connection {
        val connection =
          Http2Connection.Builder(true, TaskRunner.INSTANCE)
            .socket(peer.openSocket())
            .pushObserver(pushObserver)
            .listener(listener)
            .build()
        connection.start(sendConnectionPreface = false)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

         */
        @Override
        public void addListener(Runnable listener, Executor exec) {
          executionList.add(listener, exec);
        }
    
        /**
         * Subclasses should invoke this method to set the result of the computation to {@code value}.
         * This will set the state of the future to {@link OldAbstractFuture.Sync#COMPLETED} and invoke
         * the listeners if the state was successfully changed.
         *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

      val platform = PlatformRule()
    
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private lateinit var server1: MockWebServer
      private lateinit var server2: MockWebServer
    
      private var listener = RecordingEventListener()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      val dns = FakeDns()
    
      val ipv4 = InetAddress.getByName("203.0.113.1")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/FluentFuture.java

        }
    
        @Override
        public final boolean isCancelled() {
          return super.isCancelled();
        }
    
        @Override
        public final void addListener(Runnable listener, Executor executor) {
          super.addListener(listener, executor);
        }
    
        @CanIgnoreReturnValue
        @Override
        public final boolean cancel(boolean mayInterruptIfRunning) {
          return super.cancel(mayInterruptIfRunning);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/ConnectionListener.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import okio.IOException
    
    /**
     * Listener for connection events. Extend this class to monitor the new connections and closes.
     *
     * All event methods must execute fast, without external locking, cannot throw exceptions,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        } finally {
          joinPool(e);
        }
      }
    
      private static void assertListenerRunImmediately(ListenableFuture<?> future) {
        CountingRunnable listener = new CountingRunnable();
        future.addListener(listener, directExecutor());
        assertEquals(1, listener.count);
      }
    
      private static final class CountingRunnable implements Runnable {
        int count;
    
        @Override
        public void run() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  8. istioctl/pkg/describe/describe.go

    		Port: uint32(port),
    	}
    	listeners, err := cd.GetListenerConfigDump()
    	if err != nil {
    		return nil, err
    	}
    
    	for _, l := range listeners.DynamicListeners {
    		if l.ActiveState == nil {
    			continue
    		}
    		// Support v2 or v3 in config dump. See ads.go:RequestedTypes for more info.
    		l.ActiveState.Listener.TypeUrl = v3.ListenerType
    		listenerTyped := &listener.Listener{}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  9. native-image-tests/src/main/kotlin/okhttp3/RunTests.kt

      return discovered.getEngineTestDescriptor(testEngine).descendants.toList()
    }
    
    /**
     * Builds the awkwardly package private TreePrintingListener listener which we would like to use
     * from ConsoleLauncher.
     *
     * https://github.com/junit-team/junit5/issues/2469
     */
    fun treeListener(): TestExecutionListener {
      val colorPalette =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        exec.shutdown();
        exec.awaitTermination(100, MILLISECONDS);
      }
    
      /**
       * Tests that all listeners complete, even if they were added before or after the future was
       * finishing. Also acts as a concurrency test to make sure the locking is done correctly when a
       * future is finishing so that no listeners can be lost.
       */
      public void testAllListenersCompleteSuccessfully()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 18:30:30 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top