FreeBSD Manual Pages
std::execution::sync_wait(3) C++ Standard Libary std::execution::sync_wait(3) NAME std::execution::sync_wait - std::execution::sync_wait Synopsis Defined in header <execution> auto sync_wait( execution::sender auto sender ) requires (/*always-sends-some-values*/(sender)) (since C++26) -> std::optional<std::tuple</*value-sent-by*/(sender)>>; Parameters sender - sender upon which the completion of sync_wait is blocked Return value Returns an optional tuple of values that were sent by the provided sender on its completion of work. Notes The sender returned by sync_wait similarly to ensure_started, except that it blocks the current std::thread or thread of main until the work is com- pleted. See also Eagerly starts a sender, returning a sender that will deliver the results to a receiver to which it is connected and started, if any. When the result sender is not connected to a re- ceiver, or if the ensure_started resulting operation state is not started, the results are ignored. If such a sender is destroyed before the underlying op- eration completes, the operation continues running detached. (function template) http://cppreference.com 2024.06.10 std::execution::sync_wait(3)
NAME | Synopsis | Parameters | Return value | Notes | See also
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::execution::sync_wait&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>
