deep.task
Provides processing options for tasks on background threads.
IllegalStateException
TaskHandler
Allow processing of tasks without blocking the current thread.
Source code in deep/task/__init__.py
__init__()
Create a new TaskHandler to process tasks in a separate thread.
flush()
Await completion of all pending tasks.
submit_task(task, *args)
Submit a task to be processed in the task thread.
:param task: the task function to process :param args: the args to pass to the function :return: a future that can be listened to for completion