public Cleanup(Action cleanup) { Stream <UnitInternal> stream = StreamInternal.NeverImpl <UnitInternal>(); stream.AttachListenerImpl(ListenerInternal.CreateFromAction(cleanup)); this.stream = stream; }
internal static Behavior <T> ConstantLazyImpl <T>(Lazy <T> value) => TransactionInternal.Apply((trans, _) => StreamInternal.NeverImpl <T>().HoldLazyInternal(trans, value), false);
public static StreamSink <T> CreateSink <T>(Func <T, T, T> coalesce) => StreamInternal.CreateSinkImpl(coalesce);
public static StreamSink <T> CreateSink <T>() => StreamInternal.CreateSinkImpl <T>();
public static Stream <T> Never <T>() => StreamInternal.NeverImpl <T>();
internal static Cell <T> ConstantLazyImpl <T>(Lazy <T> value) => TransactionInternal.Apply((trans, _) => new Cell <T>(StreamInternal.NeverImpl <T>().HoldLazyInternal(trans, value)), false);
internal static Cell <T> ConstantImpl <T>(T value) => new Cell <T>(StreamInternal.NeverImpl <T>().HoldInternal(value));