33
Execution control library
[exec]
33.13
Coroutine utilities
[exec.coro.util]
33.13.6
execution::task
[exec.task]
33.13.6.3
task
members
[task.members]
🔗
task
(
task
&
&
other
)
noexcept
;
1
#
Effects
: Initializes
handle
with
exchange
(
other
.
handle
,
{
}
)
.
🔗
~
task
(
)
;
2
#
Effects
: Equivalent to:
if
(
handle
)
handle
.
destroy
(
)
;
🔗
template
<
receiver
R
>
state
<
R
>
connect
(
R
&
&
recv
)
;
3
#
Preconditions
:
bool
(
handle
)
is
true
.
4
#
Effects
: Equivalent to:
return
state
<
R
>
(
exchange
(
handle
,
{
}
)
, std
::
forward
<
R
>
(
recv
)
)
;