Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Commit

Permalink
Fixing timeout with Issue #969
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpodwysocki committed Oct 13, 2015
1 parent 72ec8cf commit a1f10de
Show file tree
Hide file tree
Showing 48 changed files with 65 additions and 65 deletions.
4 changes: 2 additions & 2 deletions dist/rx.all.compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -10385,7 +10385,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
timeoutDurationSelector = firstTimeout;
firstTimeout = observableNever();
}
other || (other = observableThrow(new TimeoutError()));
Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var subscription = new SerialDisposable(),
timer = new SerialDisposable(),
Expand Down Expand Up @@ -10445,7 +10445,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
}
if (other instanceof Error) { other = observableThrow(other); }
isScheduler(scheduler) || (scheduler = defaultScheduler);

Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var id = 0,
original = new SingleAssignmentDisposable(),
Expand Down
2 changes: 1 addition & 1 deletion dist/rx.all.compat.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rx.all.compat.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/rx.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -10130,7 +10130,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
timeoutDurationSelector = firstTimeout;
firstTimeout = observableNever();
}
other || (other = observableThrow(new TimeoutError()));
Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var subscription = new SerialDisposable(),
timer = new SerialDisposable(),
Expand Down Expand Up @@ -10190,7 +10190,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
}
if (other instanceof Error) { other = observableThrow(other); }
isScheduler(scheduler) || (scheduler = defaultScheduler);

Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var id = 0,
original = new SingleAssignmentDisposable(),
Expand Down
2 changes: 1 addition & 1 deletion dist/rx.all.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/rx.all.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/rx.lite.compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -6136,7 +6136,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
timeoutDurationSelector = firstTimeout;
firstTimeout = observableNever();
}
other || (other = observableThrow(new TimeoutError()));
Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var subscription = new SerialDisposable(),
timer = new SerialDisposable(),
Expand Down Expand Up @@ -6196,7 +6196,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
}
if (other instanceof Error) { other = observableThrow(other); }
isScheduler(scheduler) || (scheduler = defaultScheduler);

Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var id = 0,
original = new SingleAssignmentDisposable(),
Expand Down
2 changes: 1 addition & 1 deletion dist/rx.lite.compat.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/rx.lite.compat.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/rx.lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -5794,7 +5794,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
timeoutDurationSelector = firstTimeout;
firstTimeout = observableNever();
}
other || (other = observableThrow(new TimeoutError()));
Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var subscription = new SerialDisposable(),
timer = new SerialDisposable(),
Expand Down Expand Up @@ -5854,7 +5854,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
}
if (other instanceof Error) { other = observableThrow(other); }
isScheduler(scheduler) || (scheduler = defaultScheduler);

Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var id = 0,
original = new SingleAssignmentDisposable(),
Expand Down
2 changes: 1 addition & 1 deletion dist/rx.lite.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/rx.lite.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/rx.time.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@
timeoutDurationSelector = firstTimeout;
firstTimeout = observableNever();
}
other || (other = observableThrow(new TimeoutError()));
Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var subscription = new SerialDisposable(),
timer = new SerialDisposable(),
Expand Down Expand Up @@ -834,7 +834,7 @@
}
if (other instanceof Error) { other = observableThrow(other); }
isScheduler(scheduler) || (scheduler = defaultScheduler);

Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var id = 0,
original = new SingleAssignmentDisposable(),
Expand Down
2 changes: 1 addition & 1 deletion dist/rx.time.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rx.time.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/rx-core-binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-core-binding",
"title": "Reactive Extensions for JavaScript (RxJS) Core",
"description": "Core binding library for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-core-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-core-testing",
"title": "Reactive Extensions for JavaScript (RxJS) Core",
"description": "Core testing library for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-core",
"title": "Reactive Extensions for JavaScript (RxJS) Core",
"description": "Core library for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-aggregates-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-aggregates-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Aggregates",
"description": "Lightweight older browser compatible library with aggregate functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-aggregates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-aggregates",
"title": "Reactive Extensions for JavaScript (RxJS) Aggregates",
"description": "Lightweight library with aggregate functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-async-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-async-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight older browser compatible library with asynchronous functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-async/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-async",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight library with asynchronous functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-backpressure-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-backpressure-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight older browser compatible library with backpressure functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-backpressure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-backpressure",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight library with backpressure functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-coincidence-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-coincidence-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight older browser compatible library with coincidence functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-coincidence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-coincidence",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight library with coincidence functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Lite",
"description": "Lightweight IE6 compatible library for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
4 changes: 2 additions & 2 deletions modules/rx-lite-compat/rx.lite.compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -6136,7 +6136,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
timeoutDurationSelector = firstTimeout;
firstTimeout = observableNever();
}
other || (other = observableThrow(new TimeoutError()));
Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var subscription = new SerialDisposable(),
timer = new SerialDisposable(),
Expand Down Expand Up @@ -6196,7 +6196,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
}
if (other instanceof Error) { other = observableThrow(other); }
isScheduler(scheduler) || (scheduler = defaultScheduler);

Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var id = 0,
original = new SingleAssignmentDisposable(),
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-compat/rx.lite.compat.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions modules/rx-lite-compat/rx.lite.compat.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/rx-lite-experimental-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-experimental-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight older browser compatible library with experimental functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-experimental",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight library with experimental functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-extras-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-extras-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Lite",
"description": "Lightweight IE6 compatible library extras for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-extras/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-extras",
"title": "Reactive Extensions for JavaScript (RxJS) Lite",
"description": "Lightweight library extras for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-joinpatterns-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-joinpatterns-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight older browser compatible library with join pattern functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-joinpatterns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-joinpatterns",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight library with join pattern functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-testing-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-testing-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight older browser compatible library with testing functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-testing",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight library with testing functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-time-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-time-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight older browser compatible library with time-based functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-time/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-time",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight library with time-based functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-virtualtime-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-virtualtime-compat",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight older browser compatible library with virtual time functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite-virtualtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite-virtualtime",
"title": "Reactive Extensions for JavaScript (RxJS) Async",
"description": "Lightweight library with virtual time functions for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx-lite",
"title": "Reactive Extensions for JavaScript (RxJS) Lite",
"description": "Lightweight library for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
4 changes: 2 additions & 2 deletions modules/rx-lite/rx.lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -5794,7 +5794,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
timeoutDurationSelector = firstTimeout;
firstTimeout = observableNever();
}
other || (other = observableThrow(new TimeoutError()));
Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var subscription = new SerialDisposable(),
timer = new SerialDisposable(),
Expand Down Expand Up @@ -5854,7 +5854,7 @@ Observable.fromNodeCallback = function (fn, ctx, selector) {
}
if (other instanceof Error) { other = observableThrow(other); }
isScheduler(scheduler) || (scheduler = defaultScheduler);

Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var id = 0,
original = new SingleAssignmentDisposable(),
Expand Down
2 changes: 1 addition & 1 deletion modules/rx-lite/rx.lite.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions modules/rx-lite/rx.lite.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rx",
"title": "Reactive Extensions for JavaScript (RxJS)",
"description": "Library for composing asynchronous and event-based operations in JavaScript",
"version": "4.0.5",
"version": "4.0.6",
"homepage": "https://github.com/Reactive-Extensions/RxJS",
"author": {
"name": "Cloud Programmability Team",
Expand Down
4 changes: 2 additions & 2 deletions src/core/linq/observable/timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
timeoutDurationSelector = firstTimeout;
firstTimeout = observableNever();
}
other || (other = observableThrow(new TimeoutError()));
Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var subscription = new SerialDisposable(),
timer = new SerialDisposable(),
Expand Down Expand Up @@ -71,7 +71,7 @@
}
if (other instanceof Error) { other = observableThrow(other); }
isScheduler(scheduler) || (scheduler = defaultScheduler);

Observable.isObservable(other) || (other = observableThrow(new TimeoutError()));
return new AnonymousObservable(function (o) {
var id = 0,
original = new SingleAssignmentDisposable(),
Expand Down

0 comments on commit a1f10de

Please sign in to comment.