ClearScript_JavaScript_JavaScriptExtensions_ToPromise__1.htm" title="ToPromise&lt;T&gt;(Task&lt;T&gt;) Method" tocid="M_Microsoft_ClearScript_JavaScript_JavaScriptExtensions_ToPromise__1">ToPromise&lt;T&gt;(Task&lt;T&gt;) Method</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="../html/M_Microsoft_ClearScript_JavaScript_JavaScriptExtensions_ToPromise_2.htm" title="ToPromise(ValueTask) Method" tocid="M_Microsoft_ClearScript_JavaScript_JavaScriptExtensions_ToPromise_2">ToPr