Closed austinhartzheim closed 8 years ago
Completed. Will be available in Trixy v3.
Here is the connect()
method on the TrixyOutput
class.
def connect(self):
coro = self.loop.create_connection(lambda: self, self.host, self.port)
self.task = asyncio.async(coro)
Evaluate whether TrixyOutput objects can be self-contained. This would allow them to maintain the
autoconnect
setting.Also, it makes it easier for users of our code to create objects because they don't have to worry about the event loop.