@@ -46,7 +46,7 @@ protected MultiplexedClient(Options configuration)
4646 output = input . CreateOutput ( GC . AllocateArray < byte > ( configuration . BufferCapacity , pinned : true ) , configuration . Timeout ) ;
4747 }
4848
49- private Task WaitForConnectionCoreAsync ( CancellationToken token )
49+ private Task EnsureConnectedCoreAsync ( CancellationToken token )
5050 => readiness ? . Task . WaitAsync ( token ) ?? Task . CompletedTask ;
5151
5252 /// <summary>
@@ -57,7 +57,7 @@ private Task WaitForConnectionCoreAsync(CancellationToken token)
5757 /// <exception cref="ObjectDisposedException">The client is disposed.</exception>
5858 public ValueTask StartAsync ( CancellationToken token = default )
5959 {
60- var task = WaitForConnectionCoreAsync ( token ) ;
60+ var task = EnsureConnectedCoreAsync ( token ) ;
6161 if ( ReferenceEquals ( dispatcher , Task . CompletedTask ) )
6262 {
6363 dispatcher = DispatchAsync ( ) ;
@@ -75,8 +75,8 @@ public ValueTask StartAsync(CancellationToken token = default)
7575 /// </remarks>
7676 /// <param name="token">The token that can be used to cancel the operation.</param>
7777 /// <returns>The task representing connection state.</returns>
78- public ValueTask WaitForConnectionAsync ( CancellationToken token = default )
79- => new ( WaitForConnectionCoreAsync ( token ) ) ;
78+ public ValueTask EnsureConnectedAsync ( CancellationToken token = default )
79+ => new ( EnsureConnectedCoreAsync ( token ) ) ;
8080
8181 /// <summary>
8282 /// Creates a new multiplexed client stream.
0 commit comments