[resteasy/Resteasy] f5f078: [RESTEASY-2343] resteasy-reactor: Fix a `null` cas...
by Samuel Cox
Branch: refs/heads/master
Home: https://github.com/resteasy/Resteasy
Commit: f5f0785eda39efe39f181c7ef6d7dcaaa2333710
https://github.com/resteasy/Resteasy/commit/f5f0785eda39efe39f181c7ef6d7d...
Author: Samuel Cox <crankydillo(a)gmail.com>
Date: 2019-09-12 (Thu, 12 Sep 2019)
Changed paths:
M resteasy-reactor/src/main/java/org/jboss/resteasy/reactor/MonoProvider.java
A resteasy-reactor/src/test/java/org/jboss/resteasy/reactor/MonoProviderTest.java
Log Message:
-----------
[RESTEASY-2343] resteasy-reactor: Fix a `null` case that causes hang (#2150)
* resteasy-reactor: Fix a `null` case that causes hang
The replaced code in `MonoProvider` was blindly copied from rxjava2. We
use this code in our application and the code in `testToCompletionStageNullCase`
represents a scenario our app deals with. With the `MonoAdapter`, that
code hangs. Leveraging the existing `Mono#toFuture`, which I should
have done in the first place, addresses that hang.
* Remove unused imports.
5 years, 2 months