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.
37 lines
1.3 KiB
37 lines
1.3 KiB
/** PURE_IMPORTS_START ._Subscriber PURE_IMPORTS_END */ |
|
var __extends = (this && this.__extends) || function (d, b) { |
|
for (var p in b) |
|
if (b.hasOwnProperty(p)) |
|
d[p] = b[p]; |
|
function __() { this.constructor = d; } |
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
|
}; |
|
import { Subscriber } from './Subscriber'; |
|
/** |
|
* We need this JSDoc comment for affecting ESDoc. |
|
* @ignore |
|
* @extends {Ignored} |
|
*/ |
|
export var InnerSubscriber = /*@__PURE__*/ (/*@__PURE__*/ function (_super) { |
|
__extends(InnerSubscriber, _super); |
|
function InnerSubscriber(parent, outerValue, outerIndex) { |
|
_super.call(this); |
|
this.parent = parent; |
|
this.outerValue = outerValue; |
|
this.outerIndex = outerIndex; |
|
this.index = 0; |
|
} |
|
InnerSubscriber.prototype._next = function (value) { |
|
this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this); |
|
}; |
|
InnerSubscriber.prototype._error = function (error) { |
|
this.parent.notifyError(error, this); |
|
this.unsubscribe(); |
|
}; |
|
InnerSubscriber.prototype._complete = function () { |
|
this.parent.notifyComplete(this); |
|
this.unsubscribe(); |
|
}; |
|
return InnerSubscriber; |
|
}(Subscriber)); |
|
//# sourceMappingURL=InnerSubscriber.js.map
|
|
|