From 7ffbc3ddda97e02c4801e0f4a3d61cee30fce574 Mon Sep 17 00:00:00 2001 From: Tobias Hofer Date: Tue, 4 Oct 2022 15:22:52 +0200 Subject: [PATCH] Update Timer.xml When providing the period value as a TimeSpan in ticks, the value must represent at least 1 millisecond. Any value below will be rounded down to zero (0) and the callback is called only once. --- xml/System.Threading/Timer.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xml/System.Threading/Timer.xml b/xml/System.Threading/Timer.xml index c02fc83c057..4a17dd8a5be 100644 --- a/xml/System.Threading/Timer.xml +++ b/xml/System.Threading/Timer.xml @@ -779,6 +779,8 @@ Sub TimerCallback(state As Object) ## Remarks The callback method is invoked once after `dueTime` elapses, and thereafter each time the time interval specified by `period` elapses. + + If `period` value is provided in ticks, they have to be greater or equal to 1 millisecond. A tick value below 1 millisecond will be rounded down to zero (0). If `dueTime` is , the callback method is invoked immediately. If `dueTime` is , the callback method is never invoked; the timer is disabled, but can be re-enabled by calling and specifying a positive value for `dueTime`.