Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 550 for nwait (0.02 sec)

  1. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

          assertEquals(cancelMode == INTERRUPT, Thread.interrupted())
        }
        responseBody.close()
        assertEquals(if (connectionType == H2) 1 else 0, client.connectionPool.connectionCount())
    
        cancelLatch.await()
    
        val events = listener.eventSequence.filter { isConnectionEvent(it) }.map { it.name }
        listener.clearAllEvents()
    
        assertThat(events).startsWith("CallStart", "ConnectStart", "ConnectEnd", "ConnectionAcquired")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/testing.md

    {!../../docs_src/app_testing/tutorial001.py!}
    ```
    
    /// tip | "Dica"
    
    Observe que as funções de teste são `def` normais, não `async def`.
    
    E as chamadas para o cliente também são chamadas normais, não usando `await`.
    
    Isso permite que você use `pytest` diretamente sem complicações.
    
    ///
    
    /// note | "Detalhes técnicos"
    
    Você também pode usar `from starlette.testclient import TestClient`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. cmd/metacache-server-pool.go

    		defer wg.Done()
    		o.StopDiskAtLimit = true
    		listErr = z.listMerged(listCtx, o, filterCh)
    		o.debugln("listMerged returned with", listErr)
    	}(*o)
    
    	entries, err = filteredResults()
    	cancelList()
    	wg.Wait()
    	if listErr != nil && !errors.Is(listErr, context.Canceled) {
    		return entries, listErr
    	}
    	entries.reuse = true
    	truncated := entries.len() > o.Limit || err == nil
    	entries.truncate(o.Limit)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        }
    
        val startedTask = startNextTask()
        val otherTasksStarted = startedTask != yieldCompleteTask
    
        try {
          while (currentTask != self) {
            taskRunner.condition.await()
          }
        } finally {
          serialTaskQueue.remove(yieldCompleteTask)
        }
    
        // If we're yielding until we're exhausted and a task run, keep going until a task doesn't run.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

            new UncaughtExceptionHandler() {
              @Override
              public void uncaughtException(Thread t, Throwable e) {}
            });
        thread.start();
    
        boolean done = doneSignal.await(1, SECONDS);
        if (!done) {
          StringBuilder builder = new StringBuilder();
          for (StackTraceElement trace : thread.getStackTrace()) {
            builder.append("\tat ").append(trace).append('\n');
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

            new UncaughtExceptionHandler() {
              @Override
              public void uncaughtException(Thread t, Throwable e) {}
            });
        thread.start();
    
        boolean done = doneSignal.await(1, SECONDS);
        if (!done) {
          StringBuilder builder = new StringBuilder();
          for (StackTraceElement trace : thread.getStackTrace()) {
            builder.append("\tat ").append(trace).append('\n');
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. tests/test_dependency_contextmanager.py

            )
    
        tasks.add_task(bg, state)
        return state
    
    
    @app.middleware("http")
    async def middleware(request, call_next):
        response: StreamingResponse = await call_next(request)
        response.headers["x-state"] = json.dumps(state.copy())
        return response
    
    
    client = TestClient(app)
    
    
    def test_async_state():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:13:50 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. src/packaging/deb/init.d/fess

    	# Start Daemon
    	start-stop-daemon -d $FESS_HOME --start -b --user "$FESS_USER" -c "$FESS_USER" --pidfile "$PID_FILE" --exec $DAEMON -- $DAEMON_OPTS
    	return=$?
    	if [ $return -eq 0 ]; then
    		i=0
    		timeout=10
    		# Wait for the process to be properly started before exiting
    		until { kill -0 `cat "$PID_FILE"`; } >/dev/null 2>&1
    		do
    			sleep 1
    			i=$(($i + 1))
    			if [ $i -gt $timeout ]; then
    				log_end_msg 1
    				exit 1
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. cmd/data-scanner_test.go

    	}
    	if len(gots) != len(wants) {
    		t.Fatalf("Expected %d objects but got %d", len(wants), len(gots))
    	}
    
    	// Close expiry state's channel to inspect object versions enqueued for expiration
    	close(workers[0])
    	wg.Wait()
    	for _, obj := range expired {
    		switch obj.ObjectV.VersionID {
    		case uuids[2].String(), uuids[3].String(), uuids[4].String():
    		default:
    			t.Errorf("Unexpected versionID being expired: %#v\n", obj)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 03 11:18:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. internal/s3select/simdj/reader.go

    	// Close the input.
    	// Potentially racy if the stream decoder is still reading.
    	if r.readCloser != nil {
    		r.readCloser.Close()
    	}
    	if r.exitReader != nil {
    		close(r.exitReader)
    		r.readerWg.Wait()
    		r.exitReader = nil
    		r.input = nil
    	}
    	return nil
    }
    
    // startReader will start a reader that accepts input from r.input.
    // Input should be root -> object input. Each root indicates a record.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 30 17:02:22 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top