mirror of https://github.com/Cysharp/UniTask
deploy: 35a893ad9e
parent
3e38e17a12
commit
ca6a29f99a
|
@ -377,6 +377,62 @@ For example: FooAction = UniTask.Action(async () => { /* */ })</p>
|
||||||
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_Run__1_System_Func_System_Object_Cysharp_Threading_Tasks_UniTask___0___System_Object_System_Boolean_CancellationToken_">Run<T>(Func<Object, UniTask<T>>, Object, Boolean, CancellationToken)</a>
|
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_Run__1_System_Func_System_Object_Cysharp_Threading_Tasks_UniTask___0___System_Object_System_Boolean_CancellationToken_">Run<T>(Func<Object, UniTask<T>>, Object, Boolean, CancellationToken)</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Action_System_Boolean_CancellationToken_">RunOnThreadPool(Action, Boolean, CancellationToken)</a>
|
||||||
|
</td>
|
||||||
|
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Action_System_Object__System_Object_System_Boolean_CancellationToken_">RunOnThreadPool(Action<Object>, Object, Boolean, CancellationToken)</a>
|
||||||
|
</td>
|
||||||
|
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Func_Cysharp_Threading_Tasks_UniTask__System_Boolean_CancellationToken_">RunOnThreadPool(Func<UniTask>, Boolean, CancellationToken)</a>
|
||||||
|
</td>
|
||||||
|
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Func_System_Object_Cysharp_Threading_Tasks_UniTask__System_Object_System_Boolean_CancellationToken_">RunOnThreadPool(Func<Object, UniTask>, Object, Boolean, CancellationToken)</a>
|
||||||
|
</td>
|
||||||
|
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func___0__System_Boolean_CancellationToken_">RunOnThreadPool<T>(Func<T>, Boolean, CancellationToken)</a>
|
||||||
|
</td>
|
||||||
|
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func_Cysharp_Threading_Tasks_UniTask___0___System_Boolean_CancellationToken_">RunOnThreadPool<T>(Func<UniTask<T>>, Boolean, CancellationToken)</a>
|
||||||
|
</td>
|
||||||
|
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func_System_Object___0__System_Object_System_Boolean_CancellationToken_">RunOnThreadPool<T>(Func<Object, T>, Object, Boolean, CancellationToken)</a>
|
||||||
|
</td>
|
||||||
|
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func_System_Object_Cysharp_Threading_Tasks_UniTask___0___System_Object_System_Boolean_CancellationToken_">RunOnThreadPool<T>(Func<Object, UniTask<T>>, Object, Boolean, CancellationToken)</a>
|
||||||
|
</td>
|
||||||
|
<td class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -2252,6 +2308,378 @@ For example: FooAction = UniTask.Action(async () => { /* */ })</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<a id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool*"></a>
|
||||||
|
<h4 id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Action_System_Boolean_CancellationToken_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Action,System.Boolean,CancellationToken)">RunOnThreadPool(Action, Boolean, CancellationToken)</h4>
|
||||||
|
<div class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</div>
|
||||||
|
<div class="markdown level1 conceptual"></div>
|
||||||
|
|
||||||
|
<div class="codewrapper">
|
||||||
|
<pre><code class="lang-csharp hljs">public static UniTask RunOnThreadPool(Action action, bool configureAwait = true, CancellationToken cancellationToken = null)</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="parameters">Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>action</code></span> <span class="xref">System.Action</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>configureAwait</code></span> <span class="xref">System.Boolean</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>cancellationToken</code></span> <span class="xref">CancellationToken</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="returns">Returns</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><a class="xref" href="Cysharp.Threading.Tasks.UniTask.html">UniTask</a></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<a id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool*"></a>
|
||||||
|
<h4 id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Action_System_Object__System_Object_System_Boolean_CancellationToken_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Action{System.Object},System.Object,System.Boolean,CancellationToken)">RunOnThreadPool(Action<Object>, Object, Boolean, CancellationToken)</h4>
|
||||||
|
<div class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</div>
|
||||||
|
<div class="markdown level1 conceptual"></div>
|
||||||
|
|
||||||
|
<div class="codewrapper">
|
||||||
|
<pre><code class="lang-csharp hljs">public static UniTask RunOnThreadPool(Action<object> action, object state, bool configureAwait = true, CancellationToken cancellationToken = null)</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="parameters">Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>action</code></span> <span class="xref">System.Action</span><<span class="xref">System.Object</span>></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>state</code></span> <span class="xref">System.Object</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>configureAwait</code></span> <span class="xref">System.Boolean</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>cancellationToken</code></span> <span class="xref">CancellationToken</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="returns">Returns</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><a class="xref" href="Cysharp.Threading.Tasks.UniTask.html">UniTask</a></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<a id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool*"></a>
|
||||||
|
<h4 id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Func_Cysharp_Threading_Tasks_UniTask__System_Boolean_CancellationToken_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func{Cysharp.Threading.Tasks.UniTask},System.Boolean,CancellationToken)">RunOnThreadPool(Func<UniTask>, Boolean, CancellationToken)</h4>
|
||||||
|
<div class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</div>
|
||||||
|
<div class="markdown level1 conceptual"></div>
|
||||||
|
|
||||||
|
<div class="codewrapper">
|
||||||
|
<pre><code class="lang-csharp hljs">public static UniTask RunOnThreadPool(Func<UniTask> action, bool configureAwait = true, CancellationToken cancellationToken = null)</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="parameters">Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>action</code></span> <span class="xref">System.Func</span><<a class="xref" href="Cysharp.Threading.Tasks.UniTask.html">UniTask</a>></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>configureAwait</code></span> <span class="xref">System.Boolean</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>cancellationToken</code></span> <span class="xref">CancellationToken</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="returns">Returns</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><a class="xref" href="Cysharp.Threading.Tasks.UniTask.html">UniTask</a></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<a id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool*"></a>
|
||||||
|
<h4 id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Func_System_Object_Cysharp_Threading_Tasks_UniTask__System_Object_System_Boolean_CancellationToken_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func{System.Object,Cysharp.Threading.Tasks.UniTask},System.Object,System.Boolean,CancellationToken)">RunOnThreadPool(Func<Object, UniTask>, Object, Boolean, CancellationToken)</h4>
|
||||||
|
<div class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</div>
|
||||||
|
<div class="markdown level1 conceptual"></div>
|
||||||
|
|
||||||
|
<div class="codewrapper">
|
||||||
|
<pre><code class="lang-csharp hljs">public static UniTask RunOnThreadPool(Func<object, UniTask> action, object state, bool configureAwait = true, CancellationToken cancellationToken = null)</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="parameters">Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>action</code></span> <span class="xref">System.Func</span><<span class="xref">System.Object</span>, <a class="xref" href="Cysharp.Threading.Tasks.UniTask.html">UniTask</a>></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>state</code></span> <span class="xref">System.Object</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>configureAwait</code></span> <span class="xref">System.Boolean</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>cancellationToken</code></span> <span class="xref">CancellationToken</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="returns">Returns</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><a class="xref" href="Cysharp.Threading.Tasks.UniTask.html">UniTask</a></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<a id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool*"></a>
|
||||||
|
<h4 id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func___0__System_Boolean_CancellationToken_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{``0},System.Boolean,CancellationToken)">RunOnThreadPool<T>(Func<T>, Boolean, CancellationToken)</h4>
|
||||||
|
<div class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</div>
|
||||||
|
<div class="markdown level1 conceptual"></div>
|
||||||
|
|
||||||
|
<div class="codewrapper">
|
||||||
|
<pre><code class="lang-csharp hljs">public static UniTask<T> RunOnThreadPool<T>(Func<T> func, bool configureAwait = true, CancellationToken cancellationToken = null)</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="parameters">Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>func</code></span> <span class="xref">System.Func</span><T></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>configureAwait</code></span> <span class="xref">System.Boolean</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>cancellationToken</code></span> <span class="xref">CancellationToken</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="returns">Returns</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><a class="xref" href="Cysharp.Threading.Tasks.UniTask-1.html">UniTask</a><T></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="typeParameters">Type Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>T</code></span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<a id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool*"></a>
|
||||||
|
<h4 id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func_Cysharp_Threading_Tasks_UniTask___0___System_Boolean_CancellationToken_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{Cysharp.Threading.Tasks.UniTask{``0}},System.Boolean,CancellationToken)">RunOnThreadPool<T>(Func<UniTask<T>>, Boolean, CancellationToken)</h4>
|
||||||
|
<div class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</div>
|
||||||
|
<div class="markdown level1 conceptual"></div>
|
||||||
|
|
||||||
|
<div class="codewrapper">
|
||||||
|
<pre><code class="lang-csharp hljs">public static UniTask<T> RunOnThreadPool<T>(Func<UniTask<T>> func, bool configureAwait = true, CancellationToken cancellationToken = null)</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="parameters">Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>func</code></span> <span class="xref">System.Func</span><<a class="xref" href="Cysharp.Threading.Tasks.UniTask-1.html">UniTask</a><T>></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>configureAwait</code></span> <span class="xref">System.Boolean</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>cancellationToken</code></span> <span class="xref">CancellationToken</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="returns">Returns</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><a class="xref" href="Cysharp.Threading.Tasks.UniTask-1.html">UniTask</a><T></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="typeParameters">Type Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>T</code></span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<a id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool*"></a>
|
||||||
|
<h4 id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func_System_Object___0__System_Object_System_Boolean_CancellationToken_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{System.Object,``0},System.Object,System.Boolean,CancellationToken)">RunOnThreadPool<T>(Func<Object, T>, Object, Boolean, CancellationToken)</h4>
|
||||||
|
<div class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</div>
|
||||||
|
<div class="markdown level1 conceptual"></div>
|
||||||
|
|
||||||
|
<div class="codewrapper">
|
||||||
|
<pre><code class="lang-csharp hljs">public static UniTask<T> RunOnThreadPool<T>(Func<object, T> func, object state, bool configureAwait = true, CancellationToken cancellationToken = null)</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="parameters">Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>func</code></span> <span class="xref">System.Func</span><<span class="xref">System.Object</span>, T></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>state</code></span> <span class="xref">System.Object</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>configureAwait</code></span> <span class="xref">System.Boolean</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>cancellationToken</code></span> <span class="xref">CancellationToken</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="returns">Returns</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><a class="xref" href="Cysharp.Threading.Tasks.UniTask-1.html">UniTask</a><T></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="typeParameters">Type Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>T</code></span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<a id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool*"></a>
|
||||||
|
<h4 id="Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func_System_Object_Cysharp_Threading_Tasks_UniTask___0___System_Object_System_Boolean_CancellationToken_" data-uid="Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{System.Object,Cysharp.Threading.Tasks.UniTask{``0}},System.Object,System.Boolean,CancellationToken)">RunOnThreadPool<T>(Func<Object, UniTask<T>>, Object, Boolean, CancellationToken)</h4>
|
||||||
|
<div class="markdown level1 summary"><p>Run action on the threadPool and return to main thread if configureAwait = true.</p>
|
||||||
|
</div>
|
||||||
|
<div class="markdown level1 conceptual"></div>
|
||||||
|
|
||||||
|
<div class="codewrapper">
|
||||||
|
<pre><code class="lang-csharp hljs">public static UniTask<T> RunOnThreadPool<T>(Func<object, UniTask<T>> func, object state, bool configureAwait = true, CancellationToken cancellationToken = null)</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="parameters">Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>func</code></span> <span class="xref">System.Func</span><<span class="xref">System.Object</span>, <a class="xref" href="Cysharp.Threading.Tasks.UniTask-1.html">UniTask</a><T>></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>state</code></span> <span class="xref">System.Object</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>configureAwait</code></span> <span class="xref">System.Boolean</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
<dt><span class="parametername"><code>cancellationToken</code></span> <span class="xref">CancellationToken</span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="returns">Returns</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><a class="xref" href="Cysharp.Threading.Tasks.UniTask-1.html">UniTask</a><T></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="typeParameters">Type Parameters</h5>
|
||||||
|
<dl class="cysharpdocfx-valuedefinition">
|
||||||
|
<dt><span class="parametername"><code>T</code></span></dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<a id="Cysharp_Threading_Tasks_UniTask_SuppressCancellationThrow_" data-uid="Cysharp.Threading.Tasks.UniTask.SuppressCancellationThrow*"></a>
|
<a id="Cysharp_Threading_Tasks_UniTask_SuppressCancellationThrow_" data-uid="Cysharp.Threading.Tasks.UniTask.SuppressCancellationThrow*"></a>
|
||||||
|
|
|
@ -2781,7 +2781,7 @@
|
||||||
"output": {
|
"output": {
|
||||||
".html": {
|
".html": {
|
||||||
"relative_path": "api/Cysharp.Threading.Tasks.UniTask.html",
|
"relative_path": "api/Cysharp.Threading.Tasks.UniTask.html",
|
||||||
"hash": "alV0MQmSbuNs7m69EP3H1Q=="
|
"hash": "/BE8BcHd2tjW/v8jbUCTFg=="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is_incremental": false,
|
"is_incremental": false,
|
||||||
|
|
76
xrefmap.yml
76
xrefmap.yml
|
@ -18089,6 +18089,82 @@ references:
|
||||||
fullName.vb: Cysharp.Threading.Tasks.UniTask.Run(Of T)(System.Func(Of System.Object, Cysharp.Threading.Tasks.UniTask(Of T)), System.Object, System.Boolean, CancellationToken)
|
fullName.vb: Cysharp.Threading.Tasks.UniTask.Run(Of T)(System.Func(Of System.Object, Cysharp.Threading.Tasks.UniTask(Of T)), System.Object, System.Boolean, CancellationToken)
|
||||||
nameWithType: UniTask.Run<T>(Func<Object, UniTask<T>>, Object, Boolean, CancellationToken)
|
nameWithType: UniTask.Run<T>(Func<Object, UniTask<T>>, Object, Boolean, CancellationToken)
|
||||||
nameWithType.vb: UniTask.Run(Of T)(Func(Of Object, UniTask(Of T)), Object, Boolean, CancellationToken)
|
nameWithType.vb: UniTask.Run(Of T)(Func(Of Object, UniTask(Of T)), Object, Boolean, CancellationToken)
|
||||||
|
- uid: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Action,System.Boolean,CancellationToken)
|
||||||
|
name: RunOnThreadPool(Action, Boolean, CancellationToken)
|
||||||
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Action_System_Boolean_CancellationToken_
|
||||||
|
commentId: M:Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Action,System.Boolean,CancellationToken)
|
||||||
|
fullName: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Action, System.Boolean, CancellationToken)
|
||||||
|
nameWithType: UniTask.RunOnThreadPool(Action, Boolean, CancellationToken)
|
||||||
|
- uid: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Action{System.Object},System.Object,System.Boolean,CancellationToken)
|
||||||
|
name: RunOnThreadPool(Action<Object>, Object, Boolean, CancellationToken)
|
||||||
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Action_System_Object__System_Object_System_Boolean_CancellationToken_
|
||||||
|
commentId: M:Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Action{System.Object},System.Object,System.Boolean,CancellationToken)
|
||||||
|
name.vb: RunOnThreadPool(Action(Of Object), Object, Boolean, CancellationToken)
|
||||||
|
fullName: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Action<System.Object>, System.Object, System.Boolean, CancellationToken)
|
||||||
|
fullName.vb: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Action(Of System.Object), System.Object, System.Boolean, CancellationToken)
|
||||||
|
nameWithType: UniTask.RunOnThreadPool(Action<Object>, Object, Boolean, CancellationToken)
|
||||||
|
nameWithType.vb: UniTask.RunOnThreadPool(Action(Of Object), Object, Boolean, CancellationToken)
|
||||||
|
- uid: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func{Cysharp.Threading.Tasks.UniTask},System.Boolean,CancellationToken)
|
||||||
|
name: RunOnThreadPool(Func<UniTask>, Boolean, CancellationToken)
|
||||||
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Func_Cysharp_Threading_Tasks_UniTask__System_Boolean_CancellationToken_
|
||||||
|
commentId: M:Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func{Cysharp.Threading.Tasks.UniTask},System.Boolean,CancellationToken)
|
||||||
|
name.vb: RunOnThreadPool(Func(Of UniTask), Boolean, CancellationToken)
|
||||||
|
fullName: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func<Cysharp.Threading.Tasks.UniTask>, System.Boolean, CancellationToken)
|
||||||
|
fullName.vb: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func(Of Cysharp.Threading.Tasks.UniTask), System.Boolean, CancellationToken)
|
||||||
|
nameWithType: UniTask.RunOnThreadPool(Func<UniTask>, Boolean, CancellationToken)
|
||||||
|
nameWithType.vb: UniTask.RunOnThreadPool(Func(Of UniTask), Boolean, CancellationToken)
|
||||||
|
- uid: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func{System.Object,Cysharp.Threading.Tasks.UniTask},System.Object,System.Boolean,CancellationToken)
|
||||||
|
name: RunOnThreadPool(Func<Object, UniTask>, Object, Boolean, CancellationToken)
|
||||||
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_System_Func_System_Object_Cysharp_Threading_Tasks_UniTask__System_Object_System_Boolean_CancellationToken_
|
||||||
|
commentId: M:Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func{System.Object,Cysharp.Threading.Tasks.UniTask},System.Object,System.Boolean,CancellationToken)
|
||||||
|
name.vb: RunOnThreadPool(Func(Of Object, UniTask), Object, Boolean, CancellationToken)
|
||||||
|
fullName: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func<System.Object, Cysharp.Threading.Tasks.UniTask>, System.Object, System.Boolean, CancellationToken)
|
||||||
|
fullName.vb: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(System.Func(Of System.Object, Cysharp.Threading.Tasks.UniTask), System.Object, System.Boolean, CancellationToken)
|
||||||
|
nameWithType: UniTask.RunOnThreadPool(Func<Object, UniTask>, Object, Boolean, CancellationToken)
|
||||||
|
nameWithType.vb: UniTask.RunOnThreadPool(Func(Of Object, UniTask), Object, Boolean, CancellationToken)
|
||||||
|
- uid: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool*
|
||||||
|
name: RunOnThreadPool
|
||||||
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool_
|
||||||
|
commentId: Overload:Cysharp.Threading.Tasks.UniTask.RunOnThreadPool
|
||||||
|
isSpec: "True"
|
||||||
|
fullName: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool
|
||||||
|
nameWithType: UniTask.RunOnThreadPool
|
||||||
|
- uid: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{``0},System.Boolean,CancellationToken)
|
||||||
|
name: RunOnThreadPool<T>(Func<T>, Boolean, CancellationToken)
|
||||||
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func___0__System_Boolean_CancellationToken_
|
||||||
|
commentId: M:Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{``0},System.Boolean,CancellationToken)
|
||||||
|
name.vb: RunOnThreadPool(Of T)(Func(Of T), Boolean, CancellationToken)
|
||||||
|
fullName: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool<T>(System.Func<T>, System.Boolean, CancellationToken)
|
||||||
|
fullName.vb: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(Of T)(System.Func(Of T), System.Boolean, CancellationToken)
|
||||||
|
nameWithType: UniTask.RunOnThreadPool<T>(Func<T>, Boolean, CancellationToken)
|
||||||
|
nameWithType.vb: UniTask.RunOnThreadPool(Of T)(Func(Of T), Boolean, CancellationToken)
|
||||||
|
- uid: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{Cysharp.Threading.Tasks.UniTask{``0}},System.Boolean,CancellationToken)
|
||||||
|
name: RunOnThreadPool<T>(Func<UniTask<T>>, Boolean, CancellationToken)
|
||||||
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func_Cysharp_Threading_Tasks_UniTask___0___System_Boolean_CancellationToken_
|
||||||
|
commentId: M:Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{Cysharp.Threading.Tasks.UniTask{``0}},System.Boolean,CancellationToken)
|
||||||
|
name.vb: RunOnThreadPool(Of T)(Func(Of UniTask(Of T)), Boolean, CancellationToken)
|
||||||
|
fullName: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool<T>(System.Func<Cysharp.Threading.Tasks.UniTask<T>>, System.Boolean, CancellationToken)
|
||||||
|
fullName.vb: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(Of T)(System.Func(Of Cysharp.Threading.Tasks.UniTask(Of T)), System.Boolean, CancellationToken)
|
||||||
|
nameWithType: UniTask.RunOnThreadPool<T>(Func<UniTask<T>>, Boolean, CancellationToken)
|
||||||
|
nameWithType.vb: UniTask.RunOnThreadPool(Of T)(Func(Of UniTask(Of T)), Boolean, CancellationToken)
|
||||||
|
- uid: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{System.Object,``0},System.Object,System.Boolean,CancellationToken)
|
||||||
|
name: RunOnThreadPool<T>(Func<Object, T>, Object, Boolean, CancellationToken)
|
||||||
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func_System_Object___0__System_Object_System_Boolean_CancellationToken_
|
||||||
|
commentId: M:Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{System.Object,``0},System.Object,System.Boolean,CancellationToken)
|
||||||
|
name.vb: RunOnThreadPool(Of T)(Func(Of Object, T), Object, Boolean, CancellationToken)
|
||||||
|
fullName: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool<T>(System.Func<System.Object, T>, System.Object, System.Boolean, CancellationToken)
|
||||||
|
fullName.vb: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(Of T)(System.Func(Of System.Object, T), System.Object, System.Boolean, CancellationToken)
|
||||||
|
nameWithType: UniTask.RunOnThreadPool<T>(Func<Object, T>, Object, Boolean, CancellationToken)
|
||||||
|
nameWithType.vb: UniTask.RunOnThreadPool(Of T)(Func(Of Object, T), Object, Boolean, CancellationToken)
|
||||||
|
- uid: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{System.Object,Cysharp.Threading.Tasks.UniTask{``0}},System.Object,System.Boolean,CancellationToken)
|
||||||
|
name: RunOnThreadPool<T>(Func<Object, UniTask<T>>, Object, Boolean, CancellationToken)
|
||||||
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_RunOnThreadPool__1_System_Func_System_Object_Cysharp_Threading_Tasks_UniTask___0___System_Object_System_Boolean_CancellationToken_
|
||||||
|
commentId: M:Cysharp.Threading.Tasks.UniTask.RunOnThreadPool``1(System.Func{System.Object,Cysharp.Threading.Tasks.UniTask{``0}},System.Object,System.Boolean,CancellationToken)
|
||||||
|
name.vb: RunOnThreadPool(Of T)(Func(Of Object, UniTask(Of T)), Object, Boolean, CancellationToken)
|
||||||
|
fullName: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool<T>(System.Func<System.Object, Cysharp.Threading.Tasks.UniTask<T>>, System.Object, System.Boolean, CancellationToken)
|
||||||
|
fullName.vb: Cysharp.Threading.Tasks.UniTask.RunOnThreadPool(Of T)(System.Func(Of System.Object, Cysharp.Threading.Tasks.UniTask(Of T)), System.Object, System.Boolean, CancellationToken)
|
||||||
|
nameWithType: UniTask.RunOnThreadPool<T>(Func<Object, UniTask<T>>, Object, Boolean, CancellationToken)
|
||||||
|
nameWithType.vb: UniTask.RunOnThreadPool(Of T)(Func(Of Object, UniTask(Of T)), Object, Boolean, CancellationToken)
|
||||||
- uid: Cysharp.Threading.Tasks.UniTask.Status
|
- uid: Cysharp.Threading.Tasks.UniTask.Status
|
||||||
name: Status
|
name: Status
|
||||||
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_Status
|
href: api/Cysharp.Threading.Tasks.UniTask.html#Cysharp_Threading_Tasks_UniTask_Status
|
||||||
|
|
Loading…
Reference in New Issue