Skip to content

Commit e02ab9e

Browse files
committed
Update AsyncTimer.cs
1 parent 3f58758 commit e02ab9e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/DiffEngineTray/AsyncTimer.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@ public AsyncTimer(
1919
});
2020
var cancellation = tokenSource.Token;
2121

22-
task = Task.Run(
23-
async () =>
24-
{
25-
await RunLoop(cancellation);
26-
},
27-
cancellation);
22+
task = Task.Run(() => RunLoop(cancellation), cancellation);
2823
}
2924

3025
async Task RunLoop(CancellationToken cancellation)

0 commit comments

Comments
 (0)