TaskPool.restore

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

class TaskPool(TaskT : Task)
static if(hasMethod!(TaskT, "deserialize", void delegate(void[])))
bool
restore
(
void[] serialized
)

Parameters

serialized void[]

Buffer containing serialized data for restoring the internal state of a task.

Return Value

Type: bool

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

Meta