Exemple #1
0
        public Cleanup(Action cleanup)
        {
            Stream <UnitInternal> stream = StreamInternal.NeverImpl <UnitInternal>();

            stream.AttachListenerImpl(ListenerInternal.CreateFromAction(cleanup));

            this.stream = stream;
        }
Exemple #2
0
 public static StreamSink <T> CreateSink <T>(Func <T, T, T> coalesce) => StreamInternal.CreateSinkImpl(coalesce);
Exemple #3
0
 public static StreamSink <T> CreateSink <T>() => StreamInternal.CreateSinkImpl <T>();
Exemple #4
0
 public static Stream <T> Never <T>() => StreamInternal.NeverImpl <T>();
Exemple #5
0
 internal static Cell <T> ConstantLazyImpl <T>(Lazy <T> value) =>
 TransactionInternal.Apply((trans, _) => new Cell <T>(StreamInternal.NeverImpl <T>().HoldLazyInternal(trans, value)), false);
Exemple #6
0
 internal static Cell <T> ConstantImpl <T>(T value) =>
 new Cell <T>(StreamInternal.NeverImpl <T>().HoldInternal(value));
Exemple #7
0
 internal static Behavior <T> ConstantLazyImpl <T>(Lazy <T> value) =>
 TransactionInternal.Apply((trans, _) => StreamInternal.NeverImpl <T>().HoldLazyInternal(trans, value), false);