ReactiveX/rxjs

Examples from contributor days

Open

#2,324 建立於 2017年2月3日

在 GitHub 查看
 (16 留言) (19 反應) (2 負責人)TypeScript (31,024 star) (3,007 fork)batch import
docshelp wanted

描述

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

貢獻者指南