-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Publisher.timeoutTerminal(Duration) operator (#1445)
Motivation: The existing `Publisher.timeout(Duration)` operator restarts the timer for each received item and will only timeout if no items are emitted during the timeout duration. In some cases the total time for all items to be emitted is of more interest. An operator to timeout based on the entire elapsed time since subscribe is needed. Modifications: Add a new Publisher operator, `timeoutTerminal(Duration)`, that terminates the Publisher with a `TimeoutException` if the Publisher does not terminate before the specified time duration. Result: A new timeout option is available.
- Loading branch information
Showing
5 changed files
with
301 additions
and
93 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
Oops, something went wrong.