Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update BlockingFlowableIterable.onNext() to set error before cancel (#…
…7789) To avoid race with hasNext(), which checks for cancel first before checking for error. For example, in the following case, hasNext() may return false to the caller, making the caller assume the iterable finished successfully. 1. onNext() called cancel 2. hasNext() found the iterable is cancelled 3. hasNext() found that error is null thus returned false to the caller, without throwing the error 4. onNext() set error
- Loading branch information