BufferedReadStream.EnsureBufferedAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EnsureBufferedAsync(CancellationToken) |
Ensures that the buffer is not empty. |
EnsureBufferedAsync(Int32, CancellationToken) |
Ensures that a minimum amount of buffered data is available. |
EnsureBufferedAsync(CancellationToken)
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
Ensures that the buffer is not empty.
public:
System::Threading::Tasks::Task<bool> ^ EnsureBufferedAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> EnsureBufferedAsync (System.Threading.CancellationToken cancellationToken);
member this.EnsureBufferedAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function EnsureBufferedAsync (cancellationToken As CancellationToken) As Task(Of Boolean)
Parameters
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Returns true
if the buffer is not empty; false
otherwise.
Applies to
EnsureBufferedAsync(Int32, CancellationToken)
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
Ensures that a minimum amount of buffered data is available.
public:
System::Threading::Tasks::Task<bool> ^ EnsureBufferedAsync(int minCount, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> EnsureBufferedAsync (int minCount, System.Threading.CancellationToken cancellationToken);
member this.EnsureBufferedAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function EnsureBufferedAsync (minCount As Integer, cancellationToken As CancellationToken) As Task(Of Boolean)
Parameters
- minCount
- Int32
Minimum amount of buffered data.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Returns true
if the minimum amount of buffered data is available; false
otherwise.