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
We already have an API for is_connected but I imagine it would be easier for folks to have future/callback that fires when the connection has been closed instead of polling this function in an async context.
So would nice neat to have an API:
/// Returns only if the connection has been disconnected.
///
/// Should be cancel-safe if possible
async fn notify_on_disconnect() { }
The text was updated successfully, but these errors were encountered:
niklasad1
changed the title
[async client]: add callback when the connection is closed
[async client]: add notify_on_disconnect hook when the connection is closed
May 13, 2022
We already have an API for
is_connected
but I imagine it would be easier for folks to have future/callback that fires when the connection has been closed instead of polling this function in an async context.So would nice neat to have an API:
The text was updated successfully, but these errors were encountered: