Condividi tramite


task_completion_event::set_exception Method

Propagates an exception to all tasks associated with this event.

template<
   typename _E
>
__declspec(
   noinline
) bool set_exception(_E _Except) const;

__declspec(
   noinline
) bool set_exception(std::exception_ptr _ExceptionPtr) const ;

Parameters

  • _E

  • _Except

  • _ExceptionPtr

Requirements

Header: ppltasks.h

Namespace: concurrency

See Also

Reference

task_completion_event Class