-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(timeout): One timeout to rule them all
- Adds configuration argument pattern - Fixes issue where `timeout` and `timeoutWith` would always timeout when provided a Date as a due time, even if the source emitted a value before then. - Adds ability to configure timeout to have a different `first` timeout check and subsequent `each` timeout checks - Adds ability to timeout if _just_ the first value does not arrive after a specified number of milliseconds - Adds additional information to `TimeoutError`s thrown by bare `timeout` calls. - Adds `with` parameter to `timeout` operator's configuration, such that now `timeout` can be used in exactly the same ways as `timeoutWith` and more. The `with` parameter is a function that provides information about the timeout and expects an `ObservableInput` to switch to in response to a timeout. - Deprecates `timeoutWith`. - Updates tests to use run mode. - Adds additional tests to `timeout` to cover more aspects of the configuration possiblities. - Improves type signatures for `timeout` and `timeoutWith`.
- Loading branch information
Showing
9 changed files
with
1,388 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.