1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Add readonly to C# methods and types that don't mutate

Also removes a few unnecessary temp variables
This commit is contained in:
Raul Santos
2022-07-07 17:58:13 +02:00
parent 315c64282b
commit 71df6d66ae
26 changed files with 445 additions and 450 deletions

View File

@@ -13,7 +13,7 @@ namespace GodotTools.IdeMessaging.Utils
return waitAsyncTask.ContinueWith<IDisposable>(t => wrapper, cancellationToken).ConfigureAwait(false);
}
private struct SemaphoreSlimWaitReleaseWrapper : IDisposable
private readonly struct SemaphoreSlimWaitReleaseWrapper : IDisposable
{
private readonly SemaphoreSlim semaphoreSlim;