Fix UniTask.ReturnToCurrentSynchronizationContext
parent
f1ac469058
commit
ebd80243e0
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue