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

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

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