Skip to content

Feat: add execution helpers.#144

Merged
MbIXjkee merged 13 commits intomainfrom
execution_helpers
Mar 19, 2026
Merged

Feat: add execution helpers.#144
MbIXjkee merged 13 commits intomainfrom
execution_helpers

Conversation

@MbIXjkee
Copy link
Copy Markdown
Member

This pr introduces a bunch of helpers that are supposed to support resolving multiple execution intentions more easily, bringing lifecycle management and queueing, and avoiding race conditions.

@MbIXjkee MbIXjkee self-assigned this Mar 17, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds async execution helpers to elementary_helper to simplify running operations with centralized error handling, lifecycle-aware disposal behavior, and optional sequential queueing.

Changes:

  • Introduces ExecutionHandler/SequentialExecutionHandler plus Executor/SequentialExecutor mixins.
  • Adds unit tests covering success, error forwarding, concurrency vs sequential ordering, and disposal behavior.
  • Updates package docs and adds a dependency on elementary.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
packages/elementary_helper/lib/src/execution/execution_handler.dart New execution helpers (concurrent + sequential) and ElementaryModel mixins.
packages/elementary_helper/test/execution/execution_handler_test.dart Test coverage for handler behavior (errors, ordering, disposal).
packages/elementary_helper/README.md Documentation for the new APIs and guidance on disposal behavior.
packages/elementary_helper/pubspec.yaml Adds elementary dependency needed by the new mixins.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1b51923) to head (9bccd23).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #144    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           14        11     -3     
  Lines          429       322   -107     
==========================================
- Hits           429       322   -107     
Flag Coverage Δ
elementary ?
elementary_helper 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@MbIXjkee MbIXjkee merged commit ef2bbac into main Mar 19, 2026
7 checks passed
@MbIXjkee MbIXjkee deleted the execution_helpers branch March 19, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants