Fix UniTask.ReturnToCurrentSynchronizationContext

master
neuecc 2020-06-05 00:43:54 +09:00
parent f1ac469058
commit ebd80243e0
1 changed files with 2 additions and 0 deletions

View File

@ -351,6 +351,8 @@ namespace Cysharp.Threading.Tasks
{ {
get get
{ {
if (!dontPostWhenSameContext) return false;
var current = SynchronizationContext.Current; var current = SynchronizationContext.Current;
if (current == synchronizationContext) if (current == synchronizationContext)
{ {