Skip to content

Commit

Permalink
Fix incorrect nullable annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Exanite committed Jul 4, 2024
1 parent 0a031f1 commit 6b6b12d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Threading/ThreadSynchronizationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public ThreadSynchronizationContext(Thread targetThread)
TargetThread = targetThread;
}

public override void Send(SendOrPostCallback callback, object state)
public override void Send(SendOrPostCallback callback, object? state)
{
Post(callback, state);
}

public override void Post(SendOrPostCallback callback, object state)
public override void Post(SendOrPostCallback callback, object? state)
{
callbacks.Enqueue(new Callback(callback, state));
}
Expand Down Expand Up @@ -64,9 +64,9 @@ public void Run()
private readonly struct Callback
{
private readonly SendOrPostCallback callback;
private readonly object state;
private readonly object? state;

public Callback(SendOrPostCallback callback, object state)
public Callback(SendOrPostCallback callback, object? state)
{
this.callback = callback;
this.state = state;
Expand Down

0 comments on commit 6b6b12d

Please sign in to comment.