Table of Contents

Struct Pipe<T>

Namespace
MarymoorStudios.Core.Rpc
Assembly
MarymoorStudios.Core.Rpc.dll

A unidirectional flow of items.

public readonly struct Pipe<T>

Type Parameters

T
Inherited Members

Constructors

Pipe(PipeReader<T>, PipeWriter<T>)

Construct a new pipe.

public Pipe(PipeReader<T> reader, PipeWriter<T> writer)

Parameters

reader PipeReader<T>

The reader capability.

writer PipeWriter<T>

The writer capability.

Remarks

Writing to the writer MUST yield output on the reader.

Properties

Reader

A capability to read from the pipe.

public PipeReader<T> Reader { get; }

Property Value

PipeReader<T>

Writer

A capability to write from the pipe.

public PipeWriter<T> Writer { get; }

Property Value

PipeWriter<T>