在相关联的异步操作完成执行时,请将一个回调函数对象链接至 completion_future 对象以执行。
template <
typename _Functor
>
void then(
const _Functor &_Func
) const;
参数
_Functor
回调函子。_Func
回调函数对象。
要求
**标头:**amprt.h
**命名空间:**并发
在相关联的异步操作完成执行时,请将一个回调函数对象链接至 completion_future 对象以执行。
template <
typename _Functor
>
void then(
const _Functor &_Func
) const;
_Functor
回调函子。
_Func
回调函数对象。
**标头:**amprt.h
**命名空间:**并发