def send(self,hibp_obj):
'''
Spawns gevent/pool threads that will run the execute method on each
HIBP object.
Attributes:
- hibp_obj -> HIBP object
'''
if self.pool is not None:
return self.pool.spawn(hibp_obj.execute)
return gevent.spawn(hibp_obj.execute)
评论列表
文章目录