- Sort Score
- Num 10 results
- Language All
Results 581 - 590 of 1,031 for wait (0.02 seconds)
-
tests/test_dependency_after_yield_websockets.py
@app.websocket("/ws") async def websocket_endpoint(websocket: WebSocket, session: SessionDep): await websocket.accept() for item in session: await websocket.send_text(f"{item}") @app.websocket("/ws-broken") async def websocket_endpoint_broken(websocket: WebSocket, session: BrokenSessionDep): await websocket.accept() for item in session: await websocket.send_text(f"{item}") # pragma no cover client = TestClient(app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2K bytes - Click Count (0) -
docs_src/app_testing/tutorial002_py310.py
app = FastAPI() @app.get("/") async def read_main(): return {"msg": "Hello World"} @app.websocket("/ws") async def websocket(websocket: WebSocket): await websocket.accept() await websocket.send_json({"msg": "Hello WebSocket"}) await websocket.close() def test_read_main(): client = TestClient(app) response = client.get("/") assert response.status_code == 200
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 757 bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ForwardingCondition.java
@GwtIncompatible abstract class ForwardingCondition implements Condition { abstract Condition delegate(); @Override public void await() throws InterruptedException { delegate().await(); } @Override public boolean await(long time, TimeUnit unit) throws InterruptedException { return delegate().await(time, unit); } @Override public void awaitUninterruptibly() { delegate().awaitUninterruptibly(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 24 18:55:30 GMT 2025 - 1.8K bytes - Click Count (0) -
docs/de/docs/async.md
# Nebenläufigkeit und async / await { #concurrency-and-async-await } Details zur `async def`-Syntax für *Pfadoperation-Funktionen* und Hintergrundinformationen zu asynchronem Code, Nebenläufigkeit und Parallelität. ## In Eile? { #in-a-hurry } <abbr title="too long; didn't read - Zu lang; nicht gelesen"><strong>TL;DR:</strong></abbr> Wenn Sie Bibliotheken von Dritten verwenden, die mit `await` aufgerufen werden müssen, wie zum Beispiel: ```PythonCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 27.3K bytes - Click Count (0) -
docs/tr/docs/advanced/custom-response.md
/// note | Teknik Detaylar Bir `async` görev, yalnızca bir `await` noktasına geldiğinde iptal edilebilir. Eğer hiç `await` yoksa, generator (içinde `yield` olan fonksiyon) düzgün şekilde iptal edilemez ve iptal istendikten sonra bile çalışmaya devam edebilir. Bu küçük örneğin `await` ifadesine ihtiyacı olmadığı için, event loop’un iptali ele alabilmesi adına `await anyio.sleep(0)` ekliyoruz. Büyük veya sonsuz akışlarda bu daha da önemlidir.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 11.9K bytes - Click Count (0) -
cmd/bucket-replication-utils_test.go
t.Errorf("Test%d (%s): Size got %d , want %d", i+1, test.name, actualSize, test.expectedCompletedSize) } if repStatusStr := rinfos.ReplicationStatusInternal(); repStatusStr != test.expectedReplicationStatusInternal { t.Errorf("Test%d (%s): Internal replication status got %s , want %s", i+1, test.name, repStatusStr, test.expectedReplicationStatusInternal) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 9.3K bytes - Click Count (0) -
docs_src/middleware/tutorial001_py310.py
import time from fastapi import FastAPI, Request app = FastAPI() @app.middleware("http") async def add_process_time_header(request: Request, call_next): start_time = time.perf_counter() response = await call_next(request) process_time = time.perf_counter() - start_time response.headers["X-Process-Time"] = str(process_time)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 365 bytes - Click Count (0) -
docs_src/async_tests/app_a_py310/test_main.py
from .main import app @pytest.mark.anyio async def test_root(): async with AsyncClient( transport=ASGITransport(app=app), base_url="http://test" ) as ac: response = await ac.get("/") assert response.status_code == 200
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 360 bytes - Click Count (0) -
internal/hash/checker.go
type Checker struct { c io.Closer r io.Reader h hash.Hash want []byte } // NewChecker ensures that content with the specified length is read from rc. // Calling Close on this will close upstream. func NewChecker(rc io.ReadCloser, h hash.Hash, wantSum []byte, length int64) *Checker { return &Checker{c: rc, r: ioutil.HardLimitReader(rc, length), h: h, want: wantSum} } // Read satisfies io.ReaderCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Jan 20 14:49:07 GMT 2025 - 1.8K bytes - Click Count (0) -
dbflute_fess/dfprop/databaseInfoMap.dfprop
# o variousMap: (NotRequired - Default map:{}) # The various settings about JDBC task mainly. # ; variousMap = map:{ # o objectTypeTargetList: (NotRequired - Default list:{TABLE;VIEW}) # If you want to include other object types in generating target, # you should specify the list of included object types as adding. # e.g. Synonym of Oracle --> list:{TABLE ; VIEW ; SYNONYM}Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Oct 31 23:35:14 GMT 2015 - 7.3K bytes - Click Count (0)