added more doocstrings and improved the readme

This commit is contained in:
UpstreamData
2022-01-04 09:16:17 -07:00
parent d138778f0a
commit c075f3f66a
4 changed files with 33 additions and 1 deletions

View File

@@ -16,6 +16,14 @@ class MinerFactory:
self.miners = {}
async def get_miner_generator(self, ips: list):
"""
Get Miner objects from ip addresses using an async generator.
Returns an asynchronous generator containing Miners.
Parameters:
ips: a list of ip addresses to get miners for.
"""
loop = asyncio.get_event_loop()
scan_tasks = []
for miner in ips: