Heap allocate space for tasks.
◆ AllocateTask() [1/2]
template<typename Pendable , typename... Args>
Creates a Task by dynamically allocating Task memory from allocator.
Returns nullptr on allocation failure. Pendable must have a Poll<> Pend(Context&) method. allocator must outlive the resulting Task.
◆ AllocateTask() [2/2]
template<typename Pendable >
Creates a Task by dynamically allocating Task memory from allocator.
Returns nullptr on allocation failure. Pendable must have a Poll<> Pend(Context&) method. allocator must outlive the resulting Task.