/// <summary> /// Return a reference to this <see cref="StreamSink{T}" /> as a <see cref="Stream{T}" />. /// </summary> /// <typeparam name="T">The type of the stream sink.</typeparam> /// <param name="s">The stream sink.</param> /// <returns>A reference to this <see cref="StreamSink{T}" /> as a <see cref="Stream{T}" />.</returns> public static Stream <T> AsStream <T>(this StreamSink <T> s) => s;
private BehaviorSink(StreamSink <T> streamSink, T initialValue) : base(streamSink, initialValue) => this.streamSink = streamSink;
public static void Send <T>(this StreamSink <T> s, T a) => s.SendImpl(a);