You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/classtf_1_1Executor.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -852,7 +852,7 @@ <h3>
852
852
</tr>
853
853
</tfoot>
854
854
</table>
855
-
<p>The method creates an asynchronous task to launch the given function on the given arguments. Unlike std::async, the return here is a <em><ahref="classtf_1_1Future.html" class="m-doc">tf::<wbr/>Future</a></em> that holds an optional object to the result. If the asynchronous task is cancelled before it runs, the return is a <code>std::nullopt</code>, or the value returned by the callable.</p><preclass="m-code"><spanclass="n">tf</span><spanclass="o">::</span><spanclass="n">Fugure</span><spanclass="o"><</span><spanclass="n">std</span><spanclass="o">::</span><spanclass="n">optional</span><spanclass="o"><</span><spanclass="kt">int</span><spanclass="o">>></span><spanclass="w"></span><spanclass="n">future</span><spanclass="w"></span><spanclass="o">=</span><spanclass="w"></span><spanclass="n">executor</span><spanclass="p">.</span><spanclass="n">async</span><spanclass="p">([](){</span><spanclass="w"></span>
855
+
<p>The method creates an asynchronous task to launch the given function on the given arguments. Unlike std::async, the return here is a <em><ahref="classtf_1_1Future.html" class="m-doc">tf::<wbr/>Future</a></em> that holds an optional object to the result. If the asynchronous task is cancelled before it runs, the return is a <code>std::nullopt</code>, or the value returned by the callable.</p><preclass="m-code"><spanclass="n">tf</span><spanclass="o">::</span><spanclass="n">Future</span><spanclass="o"><</span><spanclass="n">std</span><spanclass="o">::</span><spanclass="n">optional</span><spanclass="o"><</span><spanclass="kt">int</span><spanclass="o">>></span><spanclass="w"></span><spanclass="n">future</span><spanclass="w"></span><spanclass="o">=</span><spanclass="w"></span><spanclass="n">executor</span><spanclass="p">.</span><spanclass="n">async</span><spanclass="p">([](){</span><spanclass="w"></span>
856
856
<spanclass="w"></span><spanclass="n">std</span><spanclass="o">::</span><spanclass="n">cout</span><spanclass="w"></span><spanclass="o"><<</span><spanclass="w"></span><spanclass="s">"create an asynchronous task and returns 1</span><spanclass="se">\n</span><spanclass="s">"</span><spanclass="p">;</span><spanclass="w"></span>
<spanclass="p">});</span><spanclass="w"></span></pre><p>This member function is thread-safe.</p>
@@ -905,7 +905,7 @@ <h3>
905
905
</tr>
906
906
</tfoot>
907
907
</table>
908
-
<p>The method creates a named asynchronous task to launch the given function on the given arguments. Naming an asynchronous task is primarily used for profiling and visualizing the task execution timeline. Unlike std::async, the return here is a <ahref="classtf_1_1Future.html" class="m-doc">tf::<wbr/>Future</a> that holds an optional object to the result. If the asynchronous task is cancelled before it runs, the return is a <code>std::nullopt</code>, or the value returned by the callable.</p><preclass="m-code"><spanclass="n">tf</span><spanclass="o">::</span><spanclass="n">Fugure</span><spanclass="o"><</span><spanclass="n">std</span><spanclass="o">::</span><spanclass="n">optional</span><spanclass="o"><</span><spanclass="kt">int</span><spanclass="o">>></span><spanclass="w"></span><spanclass="n">future</span><spanclass="w"></span><spanclass="o">=</span><spanclass="w"></span><spanclass="n">executor</span><spanclass="p">.</span><spanclass="n">named_async</span><spanclass="p">(</span><spanclass="s">"name"</span><spanclass="p">,</span><spanclass="w"></span><spanclass="p">[](){</span><spanclass="w"></span>
908
+
<p>The method creates a named asynchronous task to launch the given function on the given arguments. Naming an asynchronous task is primarily used for profiling and visualizing the task execution timeline. Unlike std::async, the return here is a <ahref="classtf_1_1Future.html" class="m-doc">tf::<wbr/>Future</a> that holds an optional object to the result. If the asynchronous task is cancelled before it runs, the return is a <code>std::nullopt</code>, or the value returned by the callable.</p><preclass="m-code"><spanclass="n">tf</span><spanclass="o">::</span><spanclass="n">Future</span><spanclass="o"><</span><spanclass="n">std</span><spanclass="o">::</span><spanclass="n">optional</span><spanclass="o"><</span><spanclass="kt">int</span><spanclass="o">>></span><spanclass="w"></span><spanclass="n">future</span><spanclass="w"></span><spanclass="o">=</span><spanclass="w"></span><spanclass="n">executor</span><spanclass="p">.</span><spanclass="n">named_async</span><spanclass="p">(</span><spanclass="s">"name"</span><spanclass="p">,</span><spanclass="w"></span><spanclass="p">[](){</span><spanclass="w"></span>
909
909
<spanclass="w"></span><spanclass="n">std</span><spanclass="o">::</span><spanclass="n">cout</span><spanclass="w"></span><spanclass="o"><<</span><spanclass="w"></span><spanclass="s">"create an asynchronous task with a name and returns 1</span><spanclass="se">\n</span><spanclass="s">"</span><spanclass="p">;</span><spanclass="w"></span>
Copy file name to clipboardExpand all lines: docs/xml/classtf_1_1Executor.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1115,7 +1115,7 @@ The method keeps running the caller worker in the work-stealing loop until the s
1115
1115
</parameteritem>
1116
1116
</parameterlist>
1117
1117
<simplesectkind="return"><para>a <refrefid="classtf_1_1Future"kindref="compound">tf::Future</ref> that will holds the result of the execution</para></simplesect>
1118
-
The method creates an asynchronous task to launch the given function on the given arguments. Unlike std::async, the return here is a <emphasis><refrefid="classtf_1_1Future"kindref="compound">tf::Future</ref></emphasis> that holds an optional object to the result. If the asynchronous task is cancelled before it runs, the return is a <computeroutput>std::nullopt</computeroutput>, or the value returned by the callable.</para><para><programlistingfilename=".cpp"><codeline><highlightclass="normal">tf::Fugure<std::optional<int>><sp/>future<sp/>=<sp/>executor.<refrefid="classtf_1_1Executor_1a1e6866c8f1b6a2e932f06d0b4eb032c0"kindref="member">async</ref>([](){</highlight></codeline>
1118
+
The method creates an asynchronous task to launch the given function on the given arguments. Unlike std::async, the return here is a <emphasis><refrefid="classtf_1_1Future"kindref="compound">tf::Future</ref></emphasis> that holds an optional object to the result. If the asynchronous task is cancelled before it runs, the return is a <computeroutput>std::nullopt</computeroutput>, or the value returned by the callable.</para><para><programlistingfilename=".cpp"><codeline><highlightclass="normal">tf::Future<std::optional<int>><sp/>future<sp/>=<sp/>executor.<refrefid="classtf_1_1Executor_1a1e6866c8f1b6a2e932f06d0b4eb032c0"kindref="member">async</ref>([](){</highlight></codeline>
@@ -1192,7 +1192,7 @@ The method creates an asynchronous task to launch the given function on the give
1192
1192
</parameteritem>
1193
1193
</parameterlist>
1194
1194
<simplesectkind="return"><para>a <refrefid="classtf_1_1Future"kindref="compound">tf::Future</ref> that will holds the result of the execution</para></simplesect>
1195
-
The method creates a named asynchronous task to launch the given function on the given arguments. Naming an asynchronous task is primarily used for profiling and visualizing the task execution timeline. Unlike std::async, the return here is a <refrefid="classtf_1_1Future"kindref="compound">tf::Future</ref> that holds an optional object to the result. If the asynchronous task is cancelled before it runs, the return is a <computeroutput>std::nullopt</computeroutput>, or the value returned by the callable.</para><para><programlistingfilename=".cpp"><codeline><highlightclass="normal">tf::Fugure<std::optional<int>><sp/>future<sp/>=<sp/>executor.<refrefid="classtf_1_1Executor_1a51acee1670e9f246c7ccd7f6a63f1524"kindref="member">named_async</ref>(</highlight><highlightclass="stringliteral">"name"</highlight><highlightclass="normal">,<sp/>[](){</highlight></codeline>
1195
+
The method creates a named asynchronous task to launch the given function on the given arguments. Naming an asynchronous task is primarily used for profiling and visualizing the task execution timeline. Unlike std::async, the return here is a <refrefid="classtf_1_1Future"kindref="compound">tf::Future</ref> that holds an optional object to the result. If the asynchronous task is cancelled before it runs, the return is a <computeroutput>std::nullopt</computeroutput>, or the value returned by the callable.</para><para><programlistingfilename=".cpp"><codeline><highlightclass="normal">tf::Future<std::optional<int>><sp/>future<sp/>=<sp/>executor.<refrefid="classtf_1_1Executor_1a51acee1670e9f246c7ccd7f6a63f1524"kindref="member">named_async</ref>(</highlight><highlightclass="stringliteral">"name"</highlight><highlightclass="normal">,<sp/>[](){</highlight></codeline>
0 commit comments