DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.13.1" />

 GCLatencyModeScope

Represents lexical scope of the specific GC latency mode.
public static GCLatencyModeScope LowLatency { get; }

Creates a scope with LowLatency GC intrusion level.

public static GCLatencyModeScope SustainedLowLatency { get; }

Creates a scope with SustainedLowLatency GC intrusion level.

Initializes a new scope that affects GC intrusion level.

public void Dispose()

Cancels previously defined GC latency.