ThrottledTaskPool.restore

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

class ThrottledTaskPool(TaskT)
override
static if(hasMethod!(TaskT, "deserialize", void delegate(void[])))
bool
restore
(
void[] serialized
)

Parameters

serialized void[]

same set of args as defined by serialized method of user-supplied task class, will be forwarded to it.

Return Value

Type: bool

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

Meta