mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Inline cancellation token source creation
This commit is contained in:
@ -121,7 +121,6 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
|
||||
cts?.Cancel();
|
||||
cts = new CancellationTokenSource();
|
||||
|
||||
LoadComponentAsync(newColumns, c =>
|
||||
{
|
||||
@ -131,7 +130,7 @@ namespace osu.Game.Screens.Play
|
||||
recalculateValues();
|
||||
redrawFilled();
|
||||
redrawProgress();
|
||||
}, cts.Token);
|
||||
}, (cts = new CancellationTokenSource()).Token);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user