mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-15 03:20:16 +00:00
Fix UniTask.ReturnToCurrentSynchronizationContext
This commit is contained in:
@@ -351,6 +351,8 @@ namespace Cysharp.Threading.Tasks
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!dontPostWhenSameContext) return false;
|
||||
|
||||
var current = SynchronizationContext.Current;
|
||||
if (current == synchronizationContext)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user