refactor(Cypress): Moved Cypress to the main folder of the project, as I don't need a sub project for now.

This commit is contained in:
2021-09-02 16:22:25 +02:00
parent d9226abf85
commit 89ec2d42ac
8402 changed files with 22 additions and 5 deletions

View File

@@ -0,0 +1,30 @@
import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';
export function buffer(closingNotifier) {
return function bufferOperatorFunction(source) {
return source.lift(new BufferOperator(closingNotifier));
};
}
class BufferOperator {
constructor(closingNotifier) {
this.closingNotifier = closingNotifier;
}
call(subscriber, source) {
return source.subscribe(new BufferSubscriber(subscriber, this.closingNotifier));
}
}
class BufferSubscriber extends SimpleOuterSubscriber {
constructor(destination, closingNotifier) {
super(destination);
this.buffer = [];
this.add(innerSubscribe(closingNotifier, new SimpleInnerSubscriber(this)));
}
_next(value) {
this.buffer.push(value);
}
notifyNext() {
const buffer = this.buffer;
this.buffer = [];
this.destination.next(buffer);
}
}
//# sourceMappingURL=buffer.js.map