Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_batch(self):
if self.async_task is None:
self.async_task = AsyncTaskManager(self.get_batch_)
return self.async_task.get_next()