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
If you want to manage this yourself (connection pooling), you have to call __aenter__ and __aexit__ directly which does not feel very clean. It would be nice of the contents of both are moved to a stable connect/disconnect API method so you can manage the connect yourself instead of faking the context manager:
You have multiple servers running and you want to do a rolling restart of them and then notify users of the status as they restart. Very rough code that probably does not even work:
So currently you have to use the
GameRCON
as a context manager to connect/disconnect to a server:If you want to manage this yourself (connection pooling), you have to call
__aenter__
and__aexit__
directly which does not feel very clean. It would be nice of the contents of both are moved to a stableconnect
/disconnect
API method so you can manage the connect yourself instead of faking the context manager:Example use case:
You have multiple servers running and you want to do a rolling restart of them and then notify users of the status as they restart. Very rough code that probably does not even work:
The text was updated successfully, but these errors were encountered: