Skip to content

Commit

Permalink
docs(api-reference/utils): waitForAny translation (#73)
Browse files Browse the repository at this point in the history
* translated waitForAny

* Update docs/docs/api-reference/utils/waitForAny.md

Co-authored-by: KnowsCount <56480008+KnowsCount@users.noreply.github.com>

Co-authored-by: KnowsCount <56480008+KnowsCount@users.noreply.github.com>
  • Loading branch information
KimYangOfCat and KnowsCount authored May 10, 2021
1 parent c9019c4 commit 147d4f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/api-reference/utils/waitForAny.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ title: waitForAny(dependencies)
sidebar_label: waitForAny()
---

A concurrency helper that returns a set of [`Loadable`s](/docs/api-reference/core/Loadable) for the current state of the requested dependencies. It waits until at least one of the dependencies are available.
一个返回一组表示请求依赖项当前状态的 [`Loadables`](/docs/api-reference/core/Loadable) 的并发 helper 方法。它将一直等待,直到至少有一个依赖项可用。

The dependencies may either be provided as a tuple array or as named dependencies in an object.
依赖项可以作为元组数组提供,也可以作为对象中的命名依赖项提供。

---

Expand All @@ -20,4 +20,4 @@ function waitForAny(dependencies: {[string]: RecoilValue<>}):
```
---

`waitForAny()` is similar to [`waitForNone()`](/docs/api-reference/utils/waitForNone), except that it waits until at least one dependency has a value (or an error) available instead of returning immediately.
`waitForAny()` 类似于 [`waitForNone()`](/docs/api-reference/utils/waitForNone),只是它要等到至少有一个依赖项具有可用的值 (或错误) ,而不是立即返回。

0 comments on commit 147d4f3

Please sign in to comment.