mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] UniTask External YooAsset、Dotween、TextMeshPro
[+] UniTask External YooAsset、Dotween、TextMeshPro
This commit is contained in:
@@ -383,7 +383,11 @@ namespace TEngine
|
|||||||
|
|
||||||
Reference(handle);
|
Reference(handle);
|
||||||
|
|
||||||
bool cancelOrFailed = await handle.ToUniTask().SuppressCancellationThrow();
|
UniTask uniTask = handle.ToUniTask();
|
||||||
|
|
||||||
|
uniTask.AttachExternalCancellation(cancellationToken);
|
||||||
|
|
||||||
|
bool cancelOrFailed = await uniTask.SuppressCancellationThrow();
|
||||||
|
|
||||||
if (cancelOrFailed)
|
if (cancelOrFailed)
|
||||||
{
|
{
|
||||||
|
@@ -300,7 +300,11 @@ namespace TEngine
|
|||||||
|
|
||||||
Reference(handle);
|
Reference(handle);
|
||||||
|
|
||||||
bool cancelOrFailed = await handle.ToUniTask().SuppressCancellationThrow();
|
UniTask uniTask = handle.ToUniTask();
|
||||||
|
|
||||||
|
uniTask.AttachExternalCancellation(cancellationToken);
|
||||||
|
|
||||||
|
bool cancelOrFailed = await uniTask.SuppressCancellationThrow();
|
||||||
|
|
||||||
if (cancelOrFailed)
|
if (cancelOrFailed)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user