Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ActionListener.wrap(Runnable) more Predictable (#70375)
The current implementation behaved in a non-obvious manner. If the runnable throws but is executed in `onResponse` then it will actually be executed twice and the exception be lost. This means that the exception during the first call will simply be quietly swallowed. in case the runnable (as is often the case) is a `RunOnce` or similar, where the second execution in `onFailure` is a noop this means any exception is completely swallowed.
- Loading branch information