Skip to content

Commit

Permalink
Update the documentation for the default timeout value (#4681)
Browse files Browse the repository at this point in the history
* Update the documentation for the default timout value

* update comment
  • Loading branch information
mellson authored Jan 16, 2024
1 parent 2ba2d7f commit c11e4c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/waitFor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface WaitForOptions {
* How long to wait before rejecting, if no emitted
* state satisfies the predicate.
*
* @defaultValue 10_000 (10 seconds)
* @defaultValue Infinity
*/
timeout: number;
}
Expand All @@ -18,8 +18,8 @@ const defaultWaitForOptions: WaitForOptions = {
/**
* Subscribes to an actor ref and waits for its emitted value to satisfy
* a predicate, and then resolves with that value.
* Will throw if the desired state is not reached after a timeout
* (defaults to 10 seconds).
* Will throw if the desired state is not reached after an optional timeout.
* (defaults to Infinity).
*
* @example
* ```js
Expand Down

0 comments on commit c11e4c2

Please sign in to comment.