共用方式為


completion_future::then 方法

當關聯的非同步處理作業完成執行時,繫結一個回呼函式物件至 completion_future 物件。

template <
   typename _Functor
>
void then(
   const _Functor &_Func
) const;

參數

  • _Functor
    回呼仿函式。

  • _Func
    回呼函式物件。

需求

標頭: amprt.h

命名空間: concurrency

請參閱

參考

completion_future 類別