Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TimerHolder.cs
Go to the documentation of this file.
2
3namespace System.Threading;
4
5internal sealed class TimerHolder
6{
7 internal readonly TimerQueueTimer _timer;
8
10 {
11 _timer = timer;
12 }
13
15 {
16 _timer.Close();
17 }
18
19 public void Close()
20 {
21 _timer.Close();
22 GC.SuppressFinalize(this);
23 }
24
25 public bool Close(WaitHandle notifyObject)
26 {
27 bool result = _timer.Close(notifyObject);
28 GC.SuppressFinalize(this);
29 return result;
30 }
31
33 {
34 ValueTask result = _timer.CloseAsync();
35 GC.SuppressFinalize(this);
36 return result;
37 }
38}
static void SuppressFinalize(object obj)
Definition GC.cs:202
Definition GC.cs:8
readonly TimerQueueTimer _timer
Definition TimerHolder.cs:7
TimerHolder(TimerQueueTimer timer)
Definition TimerHolder.cs:9
bool Close(WaitHandle notifyObject)