Пример #1
0
        public Cleanup(Action cleanup)
        {
            Stream <UnitInternal> stream = StreamInternal.NeverImpl <UnitInternal>();

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

            this.stream = stream;
        }
Пример #2
0
 public static Stream <T> AttachListener <T>(this Stream <T> s, IListener listener) =>
 s.AttachListenerImpl(listener);