mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-19 05:30:12 +00:00
complete except trigger
This commit is contained in:
@@ -22,17 +22,6 @@ public class SandboxMain : MonoBehaviour
|
||||
|
||||
void Start()
|
||||
{
|
||||
// Setup unobserverd tskexception handling
|
||||
TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException;
|
||||
|
||||
// Optional: disable ExecutionContext if you don't use AsyncLocal.
|
||||
//if (!ExecutionContext.IsFlowSuppressed())
|
||||
//{
|
||||
// ExecutionContext.SuppressFlow();
|
||||
//}
|
||||
|
||||
//// Optional: disable SynchronizationContext(to boostup performance) if you completely use UniTask only
|
||||
//SynchronizationContext.SetSynchronizationContext(null);
|
||||
|
||||
// -----
|
||||
|
||||
@@ -50,7 +39,7 @@ public class SandboxMain : MonoBehaviour
|
||||
{
|
||||
text.text = "";
|
||||
|
||||
ucs.TrySetResult();
|
||||
// ucs.TrySetResult();
|
||||
|
||||
await ucs.Task;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user