Skip to content

Commit 1ef29dd

Browse files
committed
Updated condition
1 parent 0ed7705 commit 1ef29dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CoroutineScheduler/Scheduler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public Scheduler()
6363
private ContextCallback? Runner { get; set; }
6464

6565
private int? ResumingOnThread { get; set; }
66-
private bool RequiresMarshalling => !ResumingOnThread.HasValue || ResumingOnThread.Value != Thread.CurrentThread.ManagedThreadId;
66+
private bool RequiresMarshalling => ResumingOnThread is null || ResumingOnThread.Value != Thread.CurrentThread.ManagedThreadId;
6767

6868
/// <summary>
6969
/// Resume any tasks that are at the point of invocation are currently awaiting `Yield()`, and <br />

0 commit comments

Comments
 (0)