ComponentFutureReader Class
The readable end of a future held by the host.
public sealed class ComponentFutureReader : IDisposable- Implements
Properties
| Name | Description |
|---|---|
| ElementType | Gets the type of the value, or null. |
ElementType
ComponentStreams.csMethods
| Name | Description |
|---|---|
| Dispose() | Drops the readable end. |
| ReadAsync(CancellationToken) | Reads the value: returns it when the writer writes it, or null when the writer drops its end without writing. |
Dispose()
ComponentStreams.csDrops the readable end.
public void Dispose()ReadAsync(CancellationToken)
ComponentStreams.csReads the value: returns it when the writer writes it, or null when the writer drops its end without writing.
net10.0
public ValueTask<ComponentValue?> ReadAsync(CancellationToken cancellationToken = default)net11.0
public ValueTask<ComponentValue?> ReadAsync(CancellationToken cancellationToken = default)