Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<script src="https://unpkg.com/@reactivex/rxjs@5.0.3/dist/global/Rx.js"></script>
 
const observable = Rx.Observable.interval(1000);
const observable2 = Rx.Observable.of(4, 5, 6);
Rx.Observable.concat(observable, observable2).subscribe(
  x => console.log(`next: ${x}`),
  error => console.error(`error: ${error}`),
  () => console.log("complete")
);
// `observable`は`complete`通知をしないため、`observable2`は決して通知を開始しない。
// => "next: 0"
// => "next: 1"
// => "next: 2"
// => "next: 3"
// ...
// => "next: 67"
// => "next: 68"
Output 300px

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers