Muscat.Helpers.Future module¶
- class Future(task, *args)[source]¶
Bases:
object
A class used to parallelize a task Instead of doing:
res = method(arg1, arg2)
- just use:
future = Future(method, arg1, arg2) […] res = future.get()
note: this is useless if you are using pure python as it is sequential
- args_: tuple[Any]¶
- originalArgs_: list[Any]¶
- res_: Any¶
- wasWritable_: list[bool]¶