mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-21 15:20:24 +00:00
Fix UniTask.ReturnToCurrentSynchronizationContext
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user