- Sort Score
- Num 10 results
- Language All
Results 671 - 680 of 744 for badsync (0.04 seconds)
-
internal/dsync/utils.go
// GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package dsync import ( "math/rand" "time" ) func backoffWait(minSleep, unit, maxSleep time.Duration) func(*rand.Rand, uint) time.Duration { if unit > time.Hour { // Protect against integer overflow
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Nov 11 14:51:43 GMT 2024 - 1.2K bytes - Click Count (0) -
docs/fr/docs/tutorial/background-tasks.md
Elle peut être une fonction asynchrone (`async def`) ou une fonction normale (`def`), **FastAPI** saura la gérer correctement. Dans cet exemple, la fonction de tâche écrira dans un fichier (afin de simuler un envoi d'email). L'opération d'écriture n'utilisant ni `async` ni `await`, on définit la fonction avec un `def` normal.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 5.5K bytes - Click Count (0) -
docs/ru/docs/tutorial/first-steps.md
В данном случае это асинхронная (`async`) функция. --- Вы также можете определить её как обычную функцию вместо `async def`: {* ../../docs_src/first_steps/tutorial003_py39.py hl[7] *} /// note | Примечание Если вы не знаете, в чём разница, посмотрите [Асинхронность: *"Нет времени?"*](../async.md#in-a-hurry){.internal-link target=_blank}. ///Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 17.7K bytes - Click Count (0) -
docs/zh/docs/tutorial/first-steps.md
这是一个 Python 函数。 每当 **FastAPI** 接收一个使用 `GET` 方法访问 URL「`/`」的请求时这个函数会被调用。 在这个例子中,它是一个 `async` 函数。 --- 你也可以将其定义为常规函数而不使用 `async def`: {* ../../docs_src/first_steps/tutorial003.py hl[7] *} /// note 如果你不知道两者的区别,请查阅 [并发: *赶时间吗?*](../async.md#_1){.internal-link target=_blank}。 /// ### 步骤 5:返回内容 {* ../../docs_src/first_steps/tutorial001.py hl[8] *}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 10.5K bytes - Click Count (0) -
docs/en/mkdocs.yml
show_symbol_type_heading: true show_symbol_type_toc: true nav: - FastAPI: index.md - features.md - Learn: - learn/index.md - python-types.md - async.md - environment-variables.md - virtual-environments.md - Tutorial - User Guide: - tutorial/index.md - tutorial/first-steps.md - tutorial/path-params.md - tutorial/query-params.mdCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 10:44:55 GMT 2025 - 9.2K bytes - Click Count (0) -
.github/workflows/create_issue.js
github enables querying for PR and also create issue using rest endpoint context has the commit message details in the payload @return {string} Returns the issue number and title */ module.exports = async ({github, context}) => { const rollback_commit = context.payload.head_commit.id; const pr_match_groups = context.payload.head_commit.message.match(/\Rollback of PR #(\d+).*/) || []; if (pr_match_groups.length != 2) {Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Mon Oct 18 23:04:59 GMT 2021 - 2.8K bytes - Click Count (0) -
internal/dsync/dsync_test.go
) // TestMain initializes the testing framework func TestMain(m *testing.M) { startLockServers() // Initialize locker clients for dsync. var clnts []NetLocker for i := range nodes { clnts = append(clnts, newClient(nodes[i].URL)) } ds = &Dsync{ GetLockers: func() ([]NetLocker, string) { return clnts, uuid.New().String() }, Timeouts: Timeouts{ Acquire: testDrwMutexAcquireTimeout,
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 10.8K bytes - Click Count (0) -
docs/en/docs/advanced/custom-response.md
You can also use the `status_code` parameter combined with the `response_class` parameter: {* ../../docs_src/custom_response/tutorial006c_py39.py hl[2,7,9] *} ### `StreamingResponse` { #streamingresponse } Takes an async generator or a normal generator/iterator and streams the response body. {* ../../docs_src/custom_response/tutorial007_py39.py hl[2,14] *}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 12.4K bytes - Click Count (0) -
docs/zh/docs/tutorial/dependencies/sub-dependencies.md
在高级使用场景中,如果不想使用「缓存」值,而是为需要在同一请求的每一步操作(多次)中都实际调用依赖项,可以把 `Depends` 的参数 `use_cache` 的值设置为 `False` : ```Python hl_lines="1" async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)): return {"fresh_value": fresh_value} ``` ## 小结 千万别被本章里这些花里胡哨的词藻吓倒了,其实**依赖注入**系统非常简单。 依赖注入无非是与*路径操作函数*一样的函数罢了。
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 3.2K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java
" <div class=\"wistia-player\"> \n" + " <script src=\"https://fast.wistia.com/embed/medias/$2.jsonp\" async></script> \n" + " <script src=\"https://fast.wistia.com/assets/external/E-v1.js\" async></script> \n" + " <div class=\"wistia_responsive_padding\" style=\"padding:55.94% 0 0 0;position:relative;\"> \n" +Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue May 27 09:07:14 GMT 2025 - 11.7K bytes - Click Count (0)