encyclopegia.org

ReactiveX

ReactiveX (Rx, also known as Reactive Extensions) is a software library originally created by Microsoft that allows imperative programming languages to operate on sequences of data regardless of whether the data is synchronous or asynchronous.[src] It provides a set of sequence operators that operate on each item in the sequence.[src] It is an implementation of reactive programming and provides a blueprint for the tools to be implemented in multiple programming languages.[src]

ReactiveX (Rx, also known as Reactive Extensions) is a software library originally created by Microsoft that allows imperative programming languages to operate on sequences of data regardless of whether the data is synchronous or asynchronous.[src] It provides a set of sequence operators that operate on each item in the sequence.[src] It is an implementation of reactive programming and provides a blueprint for the tools to be implemented in multiple programming languages.[src] === Observables and observers === ReactiveX is a combination of ideas from the observer and the iterator patterns and from functional programming.[src] An observer subscribes to an observable sequence.[src] The sequence then sends the items to the observer one at a time, usually by calling the provided callback function.[src] The observer handles each one before processing the next one.[src] If many events come in asynchronously, they must be stored in a queue or dropped.[src] In ReactiveX, an observer will never be called with an item out of order or (in a multi-threaded context) called before the callback has returned for the previous item.[src] Asynchronous calls remain asynchronous and may be handled by returning an observable.[src] It is similar to the iterators pattern in that if a fatal error occurs, it notifies the observer separately (by calling a second function).[src] When all the items have been sent, it completes (and notifies the observer by calling a third function).[src] The Reactive Extensions API also borrows many of its operators from iterator operators in other programming languages.[src] Reactive Extensions is different from functional reactive programming as the Introduction to Reactive Extensions explains: It is sometimes called "functional reactive programming" but this is a misnomer.[src] ReactiveX may be functional, and it may be reactive, but "functional reactive programming" is a different animal.[src] One main point of difference is that functional reactive programming operates on values that change continuously over time, while ReactiveX operates on discrete values that are emitted over time.[src] (See Conal Elliott's work for more-precise information on functional reactive programming.) import { of, Observable, map, reduce } from 'rxjs'; const source: Observable = of(1, 2, 3, 4, 5); source .pipe( map((value) => value * 2), reduce((sum, value) => sum + value, 0) ) .subscribe({ next: (value) => { console.log(value); }, error: (error) => { console.error(error); }, complete: () => { console.log('done'); }, }); import { BehaviorSubject, scan } from 'rxjs'; import { rml } from 'rimmel'; const count = new BehaviorSubject(0).pipe( scan(x => x+1) ); document.body.innerHTML = rml` click Count is: ${count} `;[src]

20 sentences · 20 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"ReactiveX." encyclopegia.org, 2026, https://encyclopegia.org/wiki/reactivex. Accessed 26 November 2026.

Chicago

"ReactiveX." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/reactivex.

APA

encyclopegia.org. (2026). ReactiveX. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/reactivex

Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1362916421 · 0.5 · snapshot enwiki-001362916421

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.