You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Publisher#flatMapSingle make subscription non-volatile (#1025)
Motivation:
Publisher#flatMapSingle has the Subscription from onSubscribe saved to a
volatile variable. This was due to the Subscription being in the context
of the mapped Single's Subscriber termination callbacks and ambiguity in
the Reactive Streams specification about visibility related to
Publisher#subscribe(..) and Subscriber state. However recent
[discussions](reactive-streams/reactive-streams-jvm#486)
have provided more insight that the Publisher must provide visibility,
and therefore the volatile state is not necessary.
Modifications:
- Publisher#flatMapSingle subscription member variable can be
non-volatile
Result:
Less volatile state and more clear expecations.
0 commit comments