Muscat.Helpers.Future module

CheckFutureNumpy()[source]
CheckFutureSequence()[source]
CheckIntegrity(GUI: bool = False) str[source]
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]
available()[source]

returns if the data is available to use (not blocking)

get()[source]

returns the data returned by task (blocking)

originalArgs_: list[Any]
res_: Any
run_(task)[source]
wasWritable_: list[bool]