gaearon/disposables — explained in plain English
Analysis updated 2026-07-17 · repo last pushed 2018-01-07
Group multiple event listener cleanups with CompositeDisposable and remove them all with one dispose() call.
Guarantee a cleanup function runs exactly once using the basic Disposable wrapper.
Safely swap old resources for new ones with SerialDisposable, ensuring the old ones are disposed first.
Manage lifecycle cleanup for subscriptions or DOM connections in a framework or library.
| gaearon/disposables | 1utkarsh1/mcp-stdio-guard | rion-wu-tech/grok-video-workflow | |
|---|---|---|---|
| Stars | 62 | 61 | 61 |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | 2018-01-07 | — | — |
| Maintenance | Dormant | — | — |
| Setup difficulty | easy | easy | moderate |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | developer | vibe coder |
Figures from each repo's GitHub metadata at analysis time.
Package is not actively maintained, README suggests newer alternatives for new projects.
A tiny JavaScript library, extracted from RxJS, that reliably cleans up event listeners, connections, and subscriptions exactly once and never twice.
Mainly JavaScript. The stack also includes JavaScript.
Dormant — no commits in 2+ years (last push 2018-01-07).
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.