|
◆ requires()
template<typename T >
template<typename Arg0 , typename ... Args>
Construct shared future initialize it same way asi coro::future.
- Parameters
-
arg0 | first argument. If the first argument is standard allocator (std::allocator) it uses allocator to allocate shared future instance. If the first argument is not allocator, the argument is passed as first argument to shared future instance directly |
args | other arguments |
- Note
- you can use all constructor types in same way as coro::future. If you need to convert coro::future to coro::shared_future, you need to pass a lambda function which returns coro::future
Contains future value of T, can be co_awaited in coroutine.
Future which can be shared (by copying - like shared_ptr)
|