ComponentFutureReader Class

The readable end of a future held by the host.

public sealed class ComponentFutureReader : IDisposable
Implements

Properties

NameDescription
ElementTypeGets the type of the value, or null.

Gets the type of the value, or null.

public ComponentValueType? ElementType { get; }

Property value

ComponentValueType?

Methods

NameDescription
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.

Drops the readable end.

public void Dispose()

ReadAsync(CancellationToken)

ComponentStreams.cs

Reads 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)

Parameters

cancellationToken CancellationToken

Returns

ValueTask<ComponentValue?>