Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 471 for blocking (0.09 seconds)

  1. fastapi/concurrency.py

    )
    
    _T = TypeVar("_T")
    
    
    @asynccontextmanager
    async def contextmanager_in_threadpool(
        cm: AbstractContextManager[_T],
    ) -> AsyncGenerator[_T, None]:
        # blocking __exit__ from running waiting on a free thread
        # can create race conditions/deadlocks if the context manager itself
        # has its own internal pool (e.g. a database connection pool)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

          Future<V> future) {
        if (future instanceof ListenableFuture) {
          return (ListenableFuture<V>) future;
        }
        return new ListenableFutureAdapter<>(future);
      }
    
      /**
       * Submits a blocking task for the given {@link Future} to provide {@link ListenableFuture}
       * functionality.
       *
       * <p><b>Warning:</b> If the input future does not already implement {@code ListenableFuture}, the
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/TrailersSource.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import okio.IOException
    
    /**
     * Returns the trailers that follow an HTTP response, blocking if they aren't ready yet.
     * Implementations of this interface should respond to [Call.cancel] by immediately throwing an
     * [IOException].
     *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 07 18:57:05 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

            this.streamCloseTimeout = streamCloseTimeout;
        }
    
        /**
         * Sends a command to the process associated with the given session ID.
         * Uses finer-grained locking to avoid blocking other operations during I/O.
         *
         * @param sessionId unique identifier for the process session
         * @param command the command to send to the process
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 20 06:54:47 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/cache/RemovalListener.java

     *
     * <p>An instance may be called concurrently by multiple threads to process different entries.
     * Implementations of this interface should avoid performing blocking calls or synchronizing on
     * shared resources.
     *
     * @param <K> the most general type of keys this listener can listen for; for example {@code Object}
     *     if any key is acceptable
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 2K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        // thread because the task will block on the task latch after unblocking
        // the run latch.
        exec.execute(task);
        runLatch.await();
        assertEquals(1, listenerLatch.getCount());
        assertFalse(task.isDone());
        assertFalse(task.isCancelled());
    
        // Finish the task by unblocking the task latch.  Then wait for the
        // listener to be called by blocking on the listener latch.
        taskLatch.countDown();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 21:00:51 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/SmbWatchHandleTest.java

        @Test
        void testWatchTimeout() throws Exception {
            // Create a handle that simulates blocking operation
            SmbWatchHandle blockingHandle = new SmbWatchHandle() {
                @Override
                public List<FileNotifyInformation> watch() throws CIFSException {
                    try {
                        // Simulate blocking indefinitely
                        Thread.sleep(Long.MAX_VALUE);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (1)
  8. src/main/java/jcifs/util/AuthenticationRateLimiter.java

            }
    
            // Check global rate limit
            if (!checkGlobalRateLimit()) {
                totalAttemptsBlocked.incrementAndGet();
                log.warn("Global rate limit exceeded, blocking attempt from {}", sourceIp);
                return false;
            }
    
            // Check per-account limit
            if (username != null) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        // thread because the task will block on the task latch after unblocking
        // the run latch.
        exec.execute(task);
        runLatch.await();
        assertEquals(1, listenerLatch.getCount());
        assertFalse(task.isDone());
        assertFalse(task.isCancelled());
    
        // Finish the task by unblocking the task latch.  Then wait for the
        // listener to be called by blocking on the listener latch.
        taskLatch.countDown();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 21:00:51 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb1/trans/TransPeekNamedPipe.java

     *
     * This class implements the TRANS_PEEK_NAMED_PIPE transaction which allows
     * reading data from a pipe without removing it, useful for checking if data
     * is available before performing a blocking read.
     */
    public class TransPeekNamedPipe extends SmbComTransaction {
    
        private final int fid;
    
        /**
         * Constructs a TransPeekNamedPipe request to check the status of a named pipe.
         *
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3K bytes
    - Click Count (0)
Back to Top