Delen via


task::get Method (C++ REST SDK)

Returns the result this task produced. If the task is not in a terminal state, a call to get will wait for the task to finish. This method does not return a value when called on a task with a result_type of void.

_ReturnType get() const;

void get() const;

Return Value

The result of the task.

Remarks

If the task is canceled, a call to get will throw a task_canceled exception. If the task encountered an different exception or an exception was propagated to it from an antecedent task, a call to get will throw that exception.

Requirements

Header: pplxtasks.h

Namespace: pplx

See Also

Reference

task Class