I am using this library https://github.com/liamw9534/pyconnman to control connman via python/dbus. The problem is that all the other modules that I'm using are usign async api.
How to convert this module to use async function calls?
In general, if I want a library to be available both in sync and async "way", what is the recommended pattern to use?
like
class myExampleConnectorClass:
def
class myExampleAsyncConnectorClass:
async def my_method(self):
pass
class myCustomObj(myExampleConnectorClass):
def my_method(self):
return super().my_method()
How I can define the same derived class and decide when I instantiate it if I want the async or sync version?
Thanks Nick