initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
22
node_modules/rxjs/dist/esm5/internal/operators/buffer.js
generated
vendored
Normal file
22
node_modules/rxjs/dist/esm5/internal/operators/buffer.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { operate } from '../util/lift';
|
||||
import { noop } from '../util/noop';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
import { innerFrom } from '../observable/innerFrom';
|
||||
export function buffer(closingNotifier) {
|
||||
return operate(function (source, subscriber) {
|
||||
var currentBuffer = [];
|
||||
source.subscribe(createOperatorSubscriber(subscriber, function (value) { return currentBuffer.push(value); }, function () {
|
||||
subscriber.next(currentBuffer);
|
||||
subscriber.complete();
|
||||
}));
|
||||
innerFrom(closingNotifier).subscribe(createOperatorSubscriber(subscriber, function () {
|
||||
var b = currentBuffer;
|
||||
currentBuffer = [];
|
||||
subscriber.next(b);
|
||||
}, noop));
|
||||
return function () {
|
||||
currentBuffer = null;
|
||||
};
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=buffer.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue