mangayomi-mirror/lib/services
NBA2K1 8b1f7fc581 Add service disposal and lifecycle cleanup
This commit improves memory management, reduces redundant interpreter
instantiation, and standardizes service usage patterns.

- Add `dispose()` to `ExtensionService` interface and implement it across
  Dart, JS, LNReader, and Mihon services.
- Replace repeated interpreter creation in `DartExtensionService` with a
  persistent `_interpreter` instance initialized once in the constructor.
- Add disposal logic for JS DOM selector and Cheerio instances to prevent
  memory leaks.
- Introduce `withExtensionService()` helper to ensure services are always
  disposed after use.
- Update call sites across the codebase to use `withExtensionService()`
  or manual try/finally disposal.
- Improve isolate service message handling by extracting `responsePort`
  earlier.
- Ensure safer defaults (e.g., returning empty lists, const lists) when
  service calls fail.
2026-01-13 01:11:19 +01:00
..
anime_extractors dart format 2025-05-30 17:43:42 +01:00
download_manager Refactor download management with shared isolate pool and optimize concurrent downloads 2026-01-08 13:01:15 +01:00
http fix: improve error handling for Cloudflare bypass failures 2025-12-14 14:01:40 +01:00
trackers update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
aniskip.dart dart format 2025-05-30 17:43:42 +01:00
aniskip.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
fetch_item_sources.dart Add IsolateService for improved asynchronous operations and refactor service calls to utilize it 2025-11-07 16:48:42 +01:00
fetch_item_sources.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
fetch_sources_list.dart Add service disposal and lifecycle cleanup 2026-01-13 01:11:19 +01:00
fetch_subtitles.dart small bug fix 2025-08-23 21:58:32 +02:00
fetch_watch_order.dart added sequels 2025-08-25 01:52:03 +02:00
get_chapter_pages.dart refactor: replace getExtensionService with getIsolateService for page and video list retrieval 2025-11-11 14:51:10 +01:00
get_chapter_pages.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
get_detail.dart Add IsolateService for improved asynchronous operations and refactor service calls to utilize it 2025-11-07 16:48:42 +01:00
get_detail.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
get_filter_list.dart Add service disposal and lifecycle cleanup 2026-01-13 01:11:19 +01:00
get_html_content.dart Add service disposal and lifecycle cleanup 2026-01-13 01:11:19 +01:00
get_html_content.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
get_latest_updates.dart Add IsolateService for improved asynchronous operations and refactor service calls to utilize it 2025-11-07 16:48:42 +01:00
get_latest_updates.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
get_popular.dart Add IsolateService for improved asynchronous operations and refactor service calls to utilize it 2025-11-07 16:48:42 +01:00
get_popular.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
get_source_baseurl.dart Add service disposal and lifecycle cleanup 2026-01-13 01:11:19 +01:00
get_source_baseurl.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
get_source_preference.dart Add service disposal and lifecycle cleanup 2026-01-13 01:11:19 +01:00
get_video_list.dart refactor: replace getExtensionService with getIsolateService for page and video list retrieval 2025-11-11 14:51:10 +01:00
get_video_list.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
isolate_service.dart Add service disposal and lifecycle cleanup 2026-01-13 01:11:19 +01:00
library_updater.dart Return library updater if library empty 2025-12-29 01:00:01 +01:00
m_extension_server.dart feat(server): add server check before starting 2025-12-10 13:38:15 +01:00
recommendation.dart added Anibrain recommendations 2025-08-15 21:42:47 +02:00
search.dart Add IsolateService for improved asynchronous operations and refactor service calls to utilize it 2025-11-07 16:48:42 +01:00
search.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
search_.dart Add IsolateService for improved asynchronous operations and refactor service calls to utilize it 2025-11-07 16:48:42 +01:00
search_.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
supports_latest.dart Add service disposal and lifecycle cleanup 2026-01-13 01:11:19 +01:00
supports_latest.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
sync_server.dart Add keepAlive calls in Synching and SyncServer build methods 2025-11-08 22:04:57 +01:00
sync_server.g.dart update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
torrent_server.dart added sync for settings 2025-07-21 23:37:51 +02:00