Skip to content

feat(core): make fiber completion observation passive - #97

Merged
medz merged 1 commit into
mainfrom
refactor/fiber-completion-routing
Oct 25, 2026
Merged

medz merged 1 commit into
mainfrom
refactor/fiber-completion-routing

Conversation

@medz

@medz medz commented Oct 25, 2026

Copy link
Copy Markdown
Member

Summary

Add Fiber.onExit for once-only completion notifications after owned cleanup. Pending and late listeners run in their registration Zone; unsubscribing only removes that registration. Polling, listening, and waiting no longer change failure reporting.

Execution entry points and owning combinators now select the result route when starting work. Runtime.run returns its result directly; independent starts and public forks retain runtime reporting. Remove the observation bookkeeping, and preserve failure occurrences through joins, error transformations, and cleanup so the same reporting route does not report them twice. Separate runtimes retain their own reporting responsibility.

Related issues

Closes #66

Validation

  • dart pub get
  • dart format --output=none --set-exit-if-changed .
  • dart analyze --fatal-infos
  • dart test — 1,345 tests passed
  • Covered listener Zones, cleanup completion, cancelled waits, repeated reads, cross-runtime reporting, and synchronous execution handoff.

@medz medz added the enhancement New feature or request label Oct 25, 2026 — with ChatGPT Codex Connector
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T10:56:51.891072Z a4957b9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

medz commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

@codex review

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: a4957b9f9f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@medz
medz merged commit 1a00aef into main Oct 25, 2026
2 of 3 checks passed
@medz
medz deleted the refactor/fiber-completion-routing branch October 25, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose Fiber completion listeners with explicit failure responsibility

1 participant