You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
1021 B

{"ast":null,"code":"import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function buffer(closingNotifier) {\n return function bufferOperatorFunction(source) {\n return source.lift(new BufferOperator(closingNotifier));\n };\n}\n\nclass BufferOperator {\n constructor(closingNotifier) {\n this.closingNotifier = closingNotifier;\n }\n\n call(subscriber, source) {\n return source.subscribe(new BufferSubscriber(subscriber, this.closingNotifier));\n }\n\n}\n\nclass BufferSubscriber extends SimpleOuterSubscriber {\n constructor(destination, closingNotifier) {\n super(destination);\n this.buffer = [];\n this.add(innerSubscribe(closingNotifier, new SimpleInnerSubscriber(this)));\n }\n\n _next(value) {\n this.buffer.push(value);\n }\n\n notifyNext() {\n const buffer = this.buffer;\n this.buffer = [];\n this.destination.next(buffer);\n }\n\n} //# sourceMappingURL=buffer.js.map","map":null,"metadata":{},"sourceType":"module"}