forked from mtusi2026/mtusi2026lab5
Реализовать лабораторную работу 5
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace Messenger.Api.Infrastructure;
|
||||
|
||||
public sealed class ReadinessState
|
||||
{
|
||||
private int _stopping;
|
||||
public bool IsStopping => Volatile.Read(ref _stopping) != 0;
|
||||
public void Stop() => Interlocked.Exchange(ref _stopping, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user