- Sort Score
- Num 10 results
- Language All
Results 371 - 380 of 611 for Mask (0.04 seconds)
-
build-tools-internal/src/main/resources/eclipse.settings/org.eclipse.jdt.core.prefs
org.eclipse.jdt.core.formatter.tabulation.size=4 # Silence warnings about references to jdk internals. We intentionally use some # and have much tighter control of the warnings in the forbidden APIs gradle # task which is the definitive list of allowed references. org.eclipse.jdt.core.compiler.problem.forbiddenReference=ignore
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 08 16:53:28 GMT 2021 - 1.7K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/RateLimiter.java
* {@snippet : * final RateLimiter rateLimiter = RateLimiter.create(2.0); // rate is "2 permits per second" * void submitTasks(List<Runnable> tasks, Executor executor) { * for (Runnable task : tasks) { * rateLimiter.acquire(); // may wait * executor.execute(task); * } * } * } * * <p>As another example, imagine that we produce a stream of data, and we want to cap it at 5kb perCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:05:27 GMT 2025 - 21.8K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/DirectExecutor.java
* the License. */ package com.google.common.util.concurrent; import com.google.common.annotations.GwtCompatible; import java.util.concurrent.Executor; /** * An {@link Executor} that runs each task in the thread that invokes {@link Executor#execute * execute}. */ @GwtCompatible enum DirectExecutor implements Executor { INSTANCE; @Override public void execute(Runnable command) { command.run();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.1K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/util/JavaUtil.java
import java.util.List; import java.util.Optional; public class JavaUtil { /** A convenience method for getting java home for a version of java and requiring that version for the given task to execute */ public static String getJavaHome(final int version) { List<JavaHome> javaHomes = BuildParams.getJavaVersions();Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 1.1K bytes - Click Count (0) -
docs/ko/docs/advanced/async-tests.md
/// tip | 팁 테스트에 비동기 함수 호출을 통합할 때(예: [MongoDB의 MotorClient](https://stackoverflow.com/questions/41584243/runtimeerror-task-attached-to-a-different-loop)를 사용할 때) `RuntimeError: Task attached to a different loop`를 마주친다면, 이벤트 루프가 필요한 객체는 async 함수 안에서만 인스턴스화해야 한다는 점을 기억하세요. 예를 들어 `@app.on_event("startup")` 콜백에서 인스턴스화할 수 있습니다.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 4.5K bytes - Click Count (0) -
build-tools-internal/src/main/resources/checkstyle_ide_fragment.xml
<!-- There are some rules that we only want to enable in an IDE. These --> <!-- are extracted to a separate file, and merged into the IDE-specific --> <!-- Checkstyle config by the `:configureIdeCheckstyle` task. --> <module name="IdeFragment"> <!-- See CONTRIBUTING.md for our guidelines on Javadoc --> <module name="MissingJavadocMethod"> <property name="severity" value="warning" />
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Jul 21 18:58:39 GMT 2021 - 1.9K bytes - Click Count (0) -
build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/ExportElasticsearchBuildResourcesTaskIT.java
assertOutputContains( getGradleRunner().withArguments("noConfigAfterExecution", "-s", "-i").buildAndFail().getOutput(), "buildResources can't be configured after the task ran" ); }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.2K bytes - Click Count (0) -
docs/zh/docs/advanced/async-tests.md
由于测试函数现在是异步的,因此除了在测试中向 FastAPI 应用程序发送请求之外,您现在还可以调用(和使用 `await` 等待)其他 `async` 异步函数,就和您在代码中的其他任何地方调用它们的方法一样。 /// tip | 提示 如果您在测试程序中集成异步函数调用的时候遇到一个 `RuntimeError: Task attached to a different loop` 的报错(例如,使用 [MongoDB 的 MotorClient](https://stackoverflow.com/questions/41584243/runtimeerror-task-attached-to-a-different-loop) 时),请记住,只能在异步函数中实例化需要事件循环的对象,例如在 `@app.on_event("startup")` 回调中初始化。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3.9K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/background-tasks.md
**FastAPI** 會為你建立 `BackgroundTasks` 物件,並以該參數傳入。 ## 建立任務函式 { #create-a-task-function } 建立一個作為背景任務執行的函式。 它只是個可接收參數的一般函式。 它可以是 `async def`,也可以是一般的 `def`,**FastAPI** 都能正確處理。 在此例中,任務函式會寫入檔案(模擬寄送電子郵件)。 由於寫入操作未使用 `async` 與 `await`,因此以一般的 `def` 定義該函式: {* ../../docs_src/background_tasks/tutorial001_py310.py hl[6:9] *} ## 新增背景任務 { #add-the-background-task } 在路徑操作函式內,使用 `.add_task()` 將任務函式加入背景任務物件:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/zh/docs/tutorial/background-tasks.md
**FastAPI** 会创建一个 `BackgroundTasks` 类型的对象并作为该参数传入。 ## 创建一个任务函数 { #create-a-task-function } 创建要作为后台任务运行的函数。 它只是一个可以接收参数的标准函数。 它可以是 `async def` 或普通的 `def` 函数,**FastAPI** 知道如何正确处理。 在这种情况下,任务函数将写入一个文件(模拟发送电子邮件)。 由于写操作不使用 `async` 和 `await`,我们用普通的 `def` 定义函数: {* ../../docs_src/background_tasks/tutorial001_py310.py hl[6:9] *} ## 添加后台任务 { #add-the-background-task } 在你的 *路径操作函数* 里,用 `.add_task()` 方法将任务函数传到 *后台任务* 对象中:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 4.1K bytes - Click Count (0)