From d2282d5c3e34055c9d8416bcf3a7c0f940436ffe Mon Sep 17 00:00:00 2001 From: Edward Brey Date: Wed, 24 Apr 2019 00:39:29 -0500 Subject: [PATCH] Document affect of a suspended system on delay [This poor guy](https://stackoverflow.com/q/38207026/145173) has to reverse engineer `Task.Delay` to figure out what would happen if the system were suspended after it was called. This change documents the behavior. Someone should verify that the behavior is uniform for all platforms, and if not, document the variations. --- xml/System.Threading.Tasks/Task.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/System.Threading.Tasks/Task.xml b/xml/System.Threading.Tasks/Task.xml index 5b75130d0b2..24f273a315f 100644 --- a/xml/System.Threading.Tasks/Task.xml +++ b/xml/System.Threading.Tasks/Task.xml @@ -2106,7 +2106,7 @@ End Sub - The number of milliseconds to wait before completing the returned task, or -1 to wait indefinitely. + The number of milliseconds to wait before completing the returned task, or -1 to wait indefinitely. This time does not include any time that passes while the system is suspended (e.g. in Standby or Hibernate). Creates a task that completes after a specified number of milliseconds. A task that represents the time delay. @@ -2177,7 +2177,7 @@ End Sub - The time span to wait before completing the returned task, or to wait indefinitely. + The time span to wait before completing the returned task, or to wait indefinitely. This time does not include any time that passes while the system is suspended (e.g. in Standby or Hibernate). Creates a task that completes after a specified time interval. A task that represents the time delay. @@ -2243,7 +2243,7 @@ End Sub - The number of milliseconds to wait before completing the returned task, or -1 to wait indefinitely. + The number of milliseconds to wait before completing the returned task, or -1 to wait indefinitely. This time does not include any time that passes while the system is suspended (e.g. in Standby or Hibernate). A cancellation token to observe while waiting for the task to complete. Creates a cancellable task that completes after a specified number of milliseconds. A task that represents the time delay. @@ -2307,7 +2307,7 @@ End Sub - The time span to wait before completing the returned task, or to wait indefinitely. + The time span to wait before completing the returned task, or to wait indefinitely. This time does not include any time that passes while the system is suspended (e.g. in Standby or Hibernate). A cancellation token to observe while waiting for the task to complete. Creates a cancellable task that completes after a specified time interval. A task that represents the time delay.