diff --git a/docs/docs/api-reference/utils/waitForAny.md b/docs/docs/api-reference/utils/waitForAny.md index 9a5e897a..d1ed2847 100644 --- a/docs/docs/api-reference/utils/waitForAny.md +++ b/docs/docs/api-reference/utils/waitForAny.md @@ -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. +依赖项可以作为元组数组提供,也可以作为对象中的命名依赖项提供。 --- @@ -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),只是它要等到至少有一个依赖项具有可用的值 (或错误) ,而不是立即返回。