Exemplo n.º 1
0
        public Cleanup(Action cleanup)
        {
            Stream <UnitInternal> stream = StreamInternal.NeverImpl <UnitInternal>();

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

            this.stream = stream;
        }
Exemplo n.º 2
0
 public static Stream <T> AttachListener <T>(this Stream <T> s, IListener listener) =>
 s.AttachListenerImpl(listener);