TaskPool.restore

Starts a task in the same manner as start but instead calls the deserialize() method on the derived task with arguments supported. This is to support dumping and loading tasks from disk.

class TaskPool(TaskT : Task)
static if(__traits(hasMember, TaskT, "deserialize"))
bool
restore
(
ParametersOf!(TaskT.deserialize) args
)

Parameters

args ParametersOf!(TaskT.deserialize)

Arguments matching the function arguments of the 'deserialize()' function of the task type.

Return Value

Type: bool

'false' if new task can't be started because pool limit is reached for now, 'true' otherwise

Meta