ReactiveX/rxjs

Examples from contributor days

Open

#2324 aperta il 3 feb 2017

Vedi su GitHub
 (16 commenti) (19 reazioni) (2 assegnatari)TypeScript (3007 fork)batch import
docshelp wanted

Metriche repository

Star
 (31.024 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

At RxJS contributor days we discussed adding an examples/ folder to the repo and populating it with some real use cases for RxJS. Here are the examples we came up with:

  • Design an API using RxJS
  • Synchronizing async executables
  • Sharing expensive fetch data in a lazy way
  • Encouraging immutability
  • Exponential back off (dealing with a rate limited API)
  • Dealing with a bad connection / flaky server
  • Message Queues / Reactive events
  • Stock Ticker
  • Autocomplete
  • Random Walk
  • DOM Events (Double click / Drag n Drop)
  • Polling
  • Multiple HTTP Requests
  • Canvas - Slow Brushstroke
  • Color Picker
  • Animation timeline
  • Game scoreboard
  • Progress of upload (or any ajax)
  • Task manager
  • Custom backpressure
  • Observables that return generators or promises
  • Reqest / Reply pattern on websockets
  • Writing ‘async’ module with RxJS
  • Real error / exception handling
  • Undo and Redo
  • Wrapping now observable processes inside observables
  • Redux inside RxJS
  • Filesystem.js and Process.js
  • Useful .let() examples (combine throttle and debounce for example)
  • Schedulers (dealing with large, stack destroying recursive processes)
  • Re-entrant examples (see RX issues for specific problems)
  • Cancellation
  • Framework specific examples (Angular, React)
  • Effective Interop

Guida contributor