Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.144.132.48
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
rxjs /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
add
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
observable
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
operator
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
operators
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
scheduler
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
symbol
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
testing
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
util
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
AsyncSubject.ts
1.04
KB
-rw-rw-r--
2022-08-30 11:49
BUILD.bazel
650
B
-rw-rw-r--
2022-08-30 11:49
BehaviorSubject.ts
962
B
-rw-rw-r--
2022-08-30 11:49
InnerSubscriber.ts
742
B
-rw-rw-r--
2022-08-30 11:49
LICENSE.txt
10.8
KB
-rw-rw-r--
2022-08-30 11:49
MiscJSDoc.ts
15.3
KB
-rw-rw-r--
2022-08-30 11:49
Notification.ts
4.32
KB
-rw-rw-r--
2022-08-30 11:49
Observable.ts
14.9
KB
-rw-rw-r--
2022-08-30 11:49
Observer.ts
828
B
-rw-rw-r--
2022-08-30 11:49
Operator.ts
191
B
-rw-rw-r--
2022-08-30 11:49
OuterSubscriber.ts
646
B
-rw-rw-r--
2022-08-30 11:49
README.md
7.27
KB
-rw-rw-r--
2022-08-30 11:49
ReplaySubject.ts
2.94
KB
-rw-rw-r--
2022-08-30 11:49
Rx.global.js
137
B
-rw-rw-r--
2022-08-30 11:49
Rx.ts
8.16
KB
-rw-rw-r--
2022-08-30 11:49
Scheduler.ts
2.29
KB
-rw-rw-r--
2022-08-30 11:49
Subject.ts
4.04
KB
-rw-rw-r--
2022-08-30 11:49
SubjectSubscription.ts
849
B
-rw-rw-r--
2022-08-30 11:49
Subscriber.ts
8.63
KB
-rw-rw-r--
2022-08-30 11:49
Subscription.ts
7.08
KB
-rw-rw-r--
2022-08-30 11:49
WORKSPACE
25
B
-rw-rw-r--
2022-08-30 11:49
interfaces.ts
294
B
-rw-rw-r--
2022-08-30 11:49
operators.ts
5.27
KB
-rw-rw-r--
2022-08-30 11:49
tsconfig.json
640
B
-rw-rw-r--
2022-08-30 11:49
Save
Rename
import { PartialObserver } from './Observer'; import { Observable } from './Observable'; /** * Represents a push-based event or value that an {@link Observable} can emit. * This class is particularly useful for operators that manage notifications, * like {@link materialize}, {@link dematerialize}, {@link observeOn}, and * others. Besides wrapping the actual delivered value, it also annotates it * with metadata of, for instance, what type of push message it is (`next`, * `error`, or `complete`). * * @see {@link materialize} * @see {@link dematerialize} * @see {@link observeOn} * * @class Notification<T> */ export class Notification<T> { hasValue: boolean; constructor(public kind: string, public value?: T, public error?: any) { this.hasValue = kind === 'N'; } /** * Delivers to the given `observer` the value wrapped by this Notification. * @param {Observer} observer * @return */ observe(observer: PartialObserver<T>): any { switch (this.kind) { case 'N': return observer.next && observer.next(this.value); case 'E': return observer.error && observer.error(this.error); case 'C': return observer.complete && observer.complete(); } } /** * Given some {@link Observer} callbacks, deliver the value represented by the * current Notification to the correctly corresponding callback. * @param {function(value: T): void} next An Observer `next` callback. * @param {function(err: any): void} [error] An Observer `error` callback. * @param {function(): void} [complete] An Observer `complete` callback. * @return {any} */ do(next: (value: T) => void, error?: (err: any) => void, complete?: () => void): any { const kind = this.kind; switch (kind) { case 'N': return next && next(this.value); case 'E': return error && error(this.error); case 'C': return complete && complete(); } } /** * Takes an Observer or its individual callback functions, and calls `observe` * or `do` methods accordingly. * @param {Observer|function(value: T): void} nextOrObserver An Observer or * the `next` callback. * @param {function(err: any): void} [error] An Observer `error` callback. * @param {function(): void} [complete] An Observer `complete` callback. * @return {any} */ accept(nextOrObserver: PartialObserver<T> | ((value: T) => void), error?: (err: any) => void, complete?: () => void) { if (nextOrObserver && typeof (<PartialObserver<T>>nextOrObserver).next === 'function') { return this.observe(<PartialObserver<T>>nextOrObserver); } else { return this.do(<(value: T) => void>nextOrObserver, error, complete); } } /** * Returns a simple Observable that just delivers the notification represented * by this Notification instance. * @return {any} */ toObservable(): Observable<T> { const kind = this.kind; switch (kind) { case 'N': return Observable.of(this.value); case 'E': return Observable.throw(this.error); case 'C': return Observable.empty<T>(); } throw new Error('unexpected notification kind value'); } private static completeNotification: Notification<any> = new Notification('C'); private static undefinedValueNotification: Notification<any> = new Notification('N', undefined); /** * A shortcut to create a Notification instance of the type `next` from a * given value. * @param {T} value The `next` value. * @return {Notification<T>} The "next" Notification representing the * argument. */ static createNext<T>(value: T): Notification<T> { if (typeof value !== 'undefined') { return new Notification('N', value); } return Notification.undefinedValueNotification; } /** * A shortcut to create a Notification instance of the type `error` from a * given error. * @param {any} [err] The `error` error. * @return {Notification<T>} The "error" Notification representing the * argument. */ static createError<T>(err?: any): Notification<T> { return new Notification('E', undefined, err); } /** * A shortcut to create a Notification instance of the type `complete`. * @return {Notification<any>} The valueless "complete" Notification. */ static createComplete(): Notification<any> { return Notification.completeNotification; } }