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
RSocketClient implements Disposable which provides a way to initiate a shutdown. However, there is no good way to hold for the result, and it is important in some cases to wait for that. For example, in components that expose start/stop lifecycle methods and could be started and stopped multiple times. Likewise in tests to ensure resources are released before continuing.
By comparison RSocket implements Closeable so technically possible to access the underlying source RSocket and call close() on that but that could cause a session to be started if not already connected. It would be better to align the two and expose a similar option at the level of RSocketClient as well.
The text was updated successfully, but these errors were encountered:
RSocketClient
implementsDisposable
which provides a way to initiate a shutdown. However, there is no good way to hold for the result, and it is important in some cases to wait for that. For example, in components that expose start/stop lifecycle methods and could be started and stopped multiple times. Likewise in tests to ensure resources are released before continuing.By comparison
RSocket
implementsCloseable
so technically possible to access the underlying sourceRSocket
and callclose()
on that but that could cause a session to be started if not already connected. It would be better to align the two and expose a similar option at the level ofRSocketClient
as well.The text was updated successfully, but these errors were encountered: