Restores tasks from the InputStream to the TaskPool.
The task pool that the tasks will be loaded in to.
InputStream containing the serialized tasks.
The number of tasks loaded from the stream.
When serialized data has been corrupted and expected number of items is not the amount read.
See Implementation
Restores tasks from the InputStream to the TaskPool.