mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-19 13:40:11 +00:00
Prevent UnitTasks from continuing after exiting play mode #22
This commit is contained in:
@@ -195,7 +195,6 @@ namespace UniRx.AsyncTests
|
||||
|
||||
var currentThreadId = Thread.CurrentThread.ManagedThreadId;
|
||||
|
||||
UnityEngine.Debug.Log("Before:" + currentThreadId);
|
||||
|
||||
|
||||
await UniTask.SwitchToThreadPool();
|
||||
@@ -209,7 +208,6 @@ namespace UniRx.AsyncTests
|
||||
|
||||
var switchedThreadId = Thread.CurrentThread.ManagedThreadId;
|
||||
|
||||
UnityEngine.Debug.Log("After:" + switchedThreadId);
|
||||
|
||||
|
||||
currentThreadId.Should().NotBe(switchedThreadId);
|
||||
|
||||
Reference in New Issue
Block a user