Condividi tramite


task_from_result Function (Concurrency Runtime)

template<
   typename _Ty
>
task<_Ty> task_from_result(
   _Ty_Param,
   const task_options& _TaskOptions = task_options()
);

inline task<bool> task_from_result(
   bool _Param
);

inline task<void> task_from_result(
   const task_options& _TaskOptions = task_options()
);

Parameters

  • _Ty

  • _Param

  • _TaskOptions

Requirements

Header: ppltasks.h

Namespace: concurrency

See Also

Reference

concurrency Namespace