Waits for the System.Threading.Tasks.Task to complete execution within a specified time interval.
timeout A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely.
true if the System.Threading.Tasks.Task completed execution within the allotted time; otherwise, false.