You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Waits a specified time for a given <see cref="WaitHandle"/> to get signaled.
53
+
/// Waits a specified time for a given <see cref="WaitHandle"/> to be signaled.
53
54
/// </summary>
54
55
/// <param name="waitHandle">The handle to wait for.</param>
55
-
/// <param name="millisecondsTimeout">The number of milliseconds wait for <paramref name="waitHandle"/> to get signaled, or <c>-1</c> to wait indefinitely.</param>
56
+
/// <param name="millisecondsTimeout">The number of milliseconds to wait for <paramref name="waitHandle"/> to be signaled, or <c>-1</c> to wait indefinitely.</param>
56
57
/// <exception cref="SshException">The connection was closed by the server.</exception>
57
58
/// <exception cref="SshException">The channel was closed.</exception>
58
59
/// <exception cref="SshOperationTimeoutException">The handle did not get signaled within the specified timeout.</exception>
/// Blocks the current thread until the specified <see cref="WaitHandle"/> gets signaled, using a
63
-
/// 32-bit signed integer to specify the time interval in milliseconds.
63
+
/// Asynchronously waits for a given <see cref="WaitHandle"/> to be signaled.
64
64
/// </summary>
65
65
/// <param name="waitHandle">The handle to wait for.</param>
66
-
/// <param name="millisecondsTimeout">To number of milliseconds to wait for <paramref name="waitHandle"/> to get signaled, or <c>-1</c> to wait indefinitely.</param>
67
-
/// <returns>
68
-
/// <see langword="true"/> if <paramref name="waitHandle"/> received a signal within the specified timeout;
69
-
/// otherwise, <see langword="false"/>.
70
-
/// </returns>
66
+
/// <param name="millisecondsTimeout">The number of milliseconds to wait for <paramref name="waitHandle"/> to be signaled, or <c>-1</c> to wait indefinitely.</param>
67
+
/// <param name="cancellationToken">The cancellation token to observe.</param>
71
68
/// <exception cref="SshException">The connection was closed by the server.</exception>
72
69
/// <exception cref="SshException">The channel was closed.</exception>
73
-
/// <remarks>
74
-
/// The blocking wait is also interrupted when either the established channel is closed, the current
75
-
/// session is disconnected or an unexpected <see cref="Exception"/> occurred while processing a channel
/// Blocks the current thread until the specified <see cref="WaitHandle"/> gets signaled, using a
82
-
/// 32-bit signed integer to specify the time interval in milliseconds.
75
+
/// Asynchronously waits for a given <see cref="TaskCompletionSource{T}"/> to complete.
83
76
/// </summary>
84
-
/// <param name="waitHandleA">The first handle to wait for.</param>
85
-
/// <param name="waitHandleB">The second handle to wait for.</param>
86
-
/// <param name="millisecondsTimeout">To number of milliseconds to wait for a <see cref="WaitHandle"/> to get signaled, or <c>-1</c> to wait indefinitely.</param>
87
-
/// <returns>
88
-
/// <c>0</c> if <paramref name="waitHandleA"/> received a signal within the specified timeout and <c>1</c>
89
-
/// if <paramref name="waitHandleB"/> received a signal within the specified timeout, or <see cref="WaitHandle.WaitTimeout"/>
90
-
/// if no object satisfied the wait.
91
-
/// </returns>
77
+
/// <typeparam name="T">The type of the result which is being awaited.</typeparam>
78
+
/// <param name="tcs">The handle to wait for.</param>
79
+
/// <param name="millisecondsTimeout">The number of milliseconds to wait for <paramref name="tcs"/> to complete, or <c>-1</c> to wait indefinitely.</param>
80
+
/// <param name="cancellationToken">The cancellation token to observe.</param>
92
81
/// <exception cref="SshException">The connection was closed by the server.</exception>
93
82
/// <exception cref="SshException">The channel was closed.</exception>
94
-
/// <remarks>
95
-
/// <para>
96
-
/// The blocking wait is also interrupted when either the established channel is closed, the current
97
-
/// session is disconnected or an unexpected <see cref="Exception"/> occurred while processing a channel
98
-
/// or session event.
99
-
/// </para>
100
-
/// <para>
101
-
/// When both <paramref name="waitHandleA"/> and <paramref name="waitHandleB"/> are signaled during the call,
/// Waits for any of the elements in the specified array to receive a signal, using a 32-bit signed
109
89
/// integer to specify the time interval.
110
90
/// </summary>
111
-
/// <param name="waitHandles">A <see cref="WaitHandle"/> array - constructed using <see cref="CreateWaitHandleArray(WaitHandle[])"/> - containing the objects to wait for.</param>
91
+
/// <param name="waitHandles">A <see cref="WaitHandle"/> array - constructed using <see cref="CreateWaitHandleArray"/> - containing the objects to wait for.</param>
112
92
/// <param name="millisecondsTimeout">To number of milliseconds to wait for a <see cref="WaitHandle"/> to get signaled, or <c>-1</c> to wait indefinitely.</param>
113
93
/// <returns>
114
94
/// The array index of the first non-system object that satisfied the wait.
0 commit comments