Skip to content

AwaitablePoolTask

class AwaitablePoolTask : public PoolTask

A pool task that allows a thread to wait until it finishes.

Functions

Name Description
Work @inherit
AwaitableWork Pool task execution function.
Await Makes the calling thread wait for this task to finish.
Await Makes the calling thread wait for this task to finish.

Function Details

Await

void Await()

Makes the calling thread wait for this task to finish.

bool Await(AmUInt64 duration)

Makes the calling thread wait for this task to finish.

Parameter duration
The maximum amount of time to wait in milliseconds.

AwaitableWork

virtual void AwaitableWork() = 0

Pool task execution function.

Work

void Work() final

@inherit