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
The bridge is an instance of MaybeAsyncHandlerBridge or of ProgressAsyncMaybeEmitterBridge. Irrespective of which of the two classes the bridge instance belong to, most of the events that are part of the AsyncHandler interface are not forwarded to the underlying AsyncHandler implementation. This includes events like onRequestSend or onRetry, making it impossible for users of the RxClient to handle them without rewriting the whole client.
The problem is in AbstractMaybeAsyncHandlerBridge, which does not forward these events.
The text was updated successfully, but these errors were encountered:
margelatu
added a commit
to margelatu/async-http-client
that referenced
this issue
Jun 1, 2019
When using the RxJava2 client, the
AsyncHandler
implementation provided by the client code is wrapped in a bridge, see https://github.com/AsyncHttpClient/async-http-client/blob/master/extras/rxjava2/src/main/java/org/asynchttpclient/extras/rxjava2/DefaultRxHttpClient.java#L71The bridge is an instance of
MaybeAsyncHandlerBridge
or ofProgressAsyncMaybeEmitterBridge
. Irrespective of which of the two classes the bridge instance belong to, most of the events that are part of theAsyncHandler
interface are not forwarded to the underlyingAsyncHandler
implementation. This includes events likeonRequestSend
oronRetry
, making it impossible for users of theRxClient
to handle them without rewriting the whole client.The problem is in
AbstractMaybeAsyncHandlerBridge
, which does not forward these events.The text was updated successfully, but these errors were encountered: