Skip to content

feat(notify): move from compio-runtime#10

Merged
George-Miao merged 4 commits into
compio-rs:mainfrom
Berrysoft:dev/notify
Feb 24, 2026
Merged

feat(notify): move from compio-runtime#10
George-Miao merged 4 commits into
compio-rs:mainfrom
Berrysoft:dev/notify

Conversation

@Berrysoft
Copy link
Copy Markdown
Member

No description provided.

@Berrysoft Berrysoft self-assigned this Feb 23, 2026
@Berrysoft Berrysoft added the enhancement New feature or request label Feb 23, 2026
Copy link
Copy Markdown
Contributor

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 a new notify synchronization primitive to this crate (intended to replace the dependency/usage from compio-runtime) and exposes it under both sync and unsync namespaces behind a feature flag.

Changes:

  • Introduce src/notify.rs with sync/unsync implementations of a one-shot notifier + handle.
  • Wire the new notify module into src/lib.rs and add a notify feature in Cargo.toml.
  • Derive Debug for Flag (used by the new notifier’s debug derives).

Reviewed changes

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

File Description
src/notify.rs New notifier implementation for both sync and unsync variants.
src/lib.rs Feature-gated module include and re-exports for sync::notify / unsync::notify.
src/flag.rs Add Debug derive to support debug output of notifier internals.
Cargo.toml Add notify feature (depends on waker_slot).

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

Comment thread src/notify.rs Outdated
Comment thread src/notify.rs Outdated
Comment thread src/notify.rs Outdated
@Berrysoft
Copy link
Copy Markdown
Member Author

I will able to choose the exact (sync or unsync) version of Notify to use in compio with this PR.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment thread src/notify.rs Outdated
Copy link
Copy Markdown
Member

@George-Miao George-Miao left a comment

Choose a reason for hiding this comment

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

LGTM

@George-Miao George-Miao merged commit 710a6a8 into compio-rs:main Feb 24, 2026
4 checks passed
@Berrysoft Berrysoft deleted the dev/notify branch February 24, 2026 04:42
@Berrysoft
Copy link
Copy Markdown
Member Author

Could you publish a new release?

George-Miao pushed a commit to George-Miao/synchrony that referenced this pull request Feb 24, 2026
* feat(notify): spsc notifier

* docs(notify): fix old names

* fix(notify): apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat(notify): rename to AsyncFlag

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

3 participants