Class ChannelSource
Container class for Akka.Streams Source<TOut, TMat> factory methods,
which can be used to create sources from readable channels.
Inheritance
ChannelSource
Assembly: Akka.Streams.dll
Syntax
public static class ChannelSource
Methods
|
Edit this page
View Source
Create<T>(int, bool, BoundedChannelFullMode)
Declaration
public static Source<T, ChannelWriter<T>> Create<T>(int bufferSize, bool singleWriter = false, BoundedChannelFullMode fullMode = BoundedChannelFullMode.Wait)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
FromReader<T>(ChannelReader<T>)
Creates an Akka.Streams Source<TOut, TMat> from a given instance of
ChannelReader<T>. It will propagate backpressure from the downstream
to guarantee resource-safe communication as well as will react when reader
will complete (successfully or with failure) and finish downstream accordingly.
Declaration
public static Source<T, NotUsed> FromReader<T>(ChannelReader<T> reader)
Parameters
Returns
Type Parameters