- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 475 for _wait (0.02 sec)
-
guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java
*/ public void assertSuccess(Object expectedData) throws Throwable { // Verify that the listener executed in a reasonable amount of time. Assert.assertTrue(countDownLatch.await(1L, SECONDS)); try { Assert.assertEquals(expectedData, future.get()); } catch (ExecutionException e) { throw e.getCause(); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri May 12 18:12:42 UTC 2023 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java
assertTrue(latch.await(5, SECONDS)); assertTrue(future.isDone()); assertFalse(future.isCancelled()); assertEquals(expectedValue, future.get()); } public void testCancelledFuture() throws InterruptedException, ExecutionException { assertTrue(future.isDone()); assertTrue(future.isCancelled()); assertTrue(latch.await(5, SECONDS)); assertTrue(future.isDone());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 3.3K bytes - Viewed (0) -
docs/em/docs/async.md
🚥 👆 ⚙️ 🥉 🥳 🗃 👈 💬 👆 🤙 👫 ⏮️ `await`, 💖: ```Python results = await some_library() ``` ⤴️, 📣 👆 *➡ 🛠️ 🔢* ⏮️ `async def` 💖: ```Python hl_lines="2" @app.get('/') async def read_results(): results = await some_library() return results ``` /// note 👆 💪 🕴 ⚙️ `await` 🔘 🔢 ✍ ⏮️ `async def`. /// ---
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 18.6K bytes - Viewed (0) -
docs/fa/docs/async.md
# همزمانی و async / await جزئیات در مورد سینتکس `async def` برای *توابع عملیات مسیر* و یه کم پیشزمینه در مورد کد ناهمزمان، همزمانی و موازیسازی. ## عجله داری؟ <abbr title="خیلی طولانی بود؛ نخوندم"><strong>TL;DR:</strong></abbr> اگه از کتابخونههای سومشخصی استفاده میکنی که بهت میگن با `await` صداشون کنی، مثل: ```Python results = await some_library() ``` اون وقت، *توابع عملیات مسیرت* رو با `async def` تعریف کن، اینجوری:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 32.9K bytes - Viewed (0) -
docs/nl/docs/index.md
return {"item_id": item_id, "q": q} ``` <details markdown="1"> <summary>Of maak gebruik van <code>async def</code>...</summary> Als je code gebruik maakt van `async` / `await`, gebruik dan `async def`: ```Python hl_lines="9 14" from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root():
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 21.2K bytes - Viewed (0) -
docs/es/docs/advanced/async-tests.md
Luego podemos crear un `AsyncClient` con la app y enviar requests asíncronos a ella, usando `await`. {* ../../docs_src/async_tests/test_main.py hl[9:12] *} Esto es equivalente a: ```Python response = client.get('/') ``` ...que usábamos para hacer nuestros requests con el `TestClient`. /// tip | Consejo Nota que estamos usando async/await con el nuevo `AsyncClient`: el request es asíncrono. ///
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/Transport.java
te = null; thread = new Thread(this, name); thread.setDaemon(true); synchronized (thread) { thread.start(); thread.wait(timeout); /* wait for doConnect */ switch (state) { case 1: /* doConnect never returned */ state = 0; thread = null;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
cmd/peer-s3-server.go
return serr } beforeState[index] = madmin.DriveStateMissing afterState[index] = madmin.DriveStateMissing return serr } return nil }, index) } errs := g.Wait() // Initialize heal result info res = madmin.HealResultItem{ Type: madmin.HealItemBucket, Bucket: bucket, DiskCount: len(localDrives),
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/GcFinalization.java
* Object x = new MyClass() { * ... * protected void finalize() { latch.countDown(); ... } * }; * x = null; // Hint to the JIT that x is stack-unreachable * GcFinalization.await(latch); * } * * <p>Here's an example that uses a user-defined finalization predicate: * * {@snippet : * final WeakHashMap<Object, Object> map = new WeakHashMap<>(); * map.put(new Object(), Boolean.TRUE);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java
assertTrue(processHelper.isProcessRunning()); // Wait a bit for the processes to start Thread.sleep(50); // Destroy all processes processHelper.destroy(); // Wait a bit for destruction to complete Thread.sleep(100); assertFalse(processHelper.isProcessRunning());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 15.1K bytes - Viewed (0)