Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Timer() [2/6]

System.Threading.Timer.Timer ( TimerCallback callback,
object state,
int dueTime,
int period,
bool flowExecutionContext )
inlinepackage

Definition at line 53 of file Timer.cs.

54 {
55 if (dueTime < -1)
56 {
57 throw new ArgumentOutOfRangeException("dueTime", SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
58 }
59 if (period < -1)
60 {
61 throw new ArgumentOutOfRangeException("period", SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
62 }
63 TimerSetup(callback, state, (uint)dueTime, (uint)period, flowExecutionContext);
64 }
void TimerSetup(TimerCallback callback, object state, uint dueTime, uint period, bool flowExecutionContext=true)
Definition Timer.cs:122

References System.SR.ArgumentOutOfRange_NeedNonNegOrNegative1, System.state, and System.Threading.Timer.TimerSetup().