IScheduler.awaitOrTimeout

Similar to await but also has waiting timeout. Calling task will be resumed either if awaited task finished or timeout is hit, whichever happens first.

interface IScheduler
bool
awaitOrTimeout

Parameters

task Task

task to await

micro_seconds uint

timeout duration

Return Value

Type: bool

'true' if resumed via timeout, 'false' otherwise

Meta