Prevent UnitTasks from continuing after exiting play mode #22

This commit is contained in:
neuecc
2019-06-28 20:41:04 +09:00
parent 021a1da1fa
commit f82c762263
3 changed files with 20 additions and 10 deletions

View File

@@ -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);