IScheduler.awaitResult

Convenience shortcut on top of await to await for a task and return some value type as a result.

interface IScheduler
final
typeof(TaskT.result)
awaitResult
(
TaskT : Task
)
(
TaskT task
)

Parameters

task TaskT

any task that defines result public field of type with no indirections

Return Value

Type: typeof(TaskT.result)

content of result field of the task read right after that task finishes

Meta