ComponentFutureWriter Class
The writable end of a future held by the host.
public sealed class ComponentFutureWriterMethods
| Name | Description |
|---|---|
| Create(ComponentValueType?, ComponentValue) | Creates a future: the host writes its value, and gives the readable end to a component. |
| Write(ComponentValue?) | Writes the value of the future: the reader receives it when it reads the future. |
Create(ComponentValueType?, ComponentValue)
ComponentStreams.csCreates a future: the host writes its value, and gives the readable end to a component.
public static ComponentFutureWriter Create(ComponentValueType? elementType, out ComponentValue readable)Parameters
elementTypeComponentValueType?- The type of the value, or null.
readableComponentValue- The readable end, to give to a component as a value of type
future.
Returns
Write(ComponentValue?)
ComponentStreams.csWrites the value of the future: the reader receives it when it reads the future.
public void Write(ComponentValue? value)Parameters
valueComponentValue?- The value, or null for a future without value type.
Exceptions
InvalidOperationException- The value is already written.