Skip to content

Promote WithPrevious and NopReceiver out of experimental #577

Closed

Description

@llucax

What's needed?

WithPrevious (experimental since v1.4.0) and NopReceiver (since v1.9.0) are used by our own projects and haven't changed in a while, so they are ready to leave experimental.

Proposed solution

  • Move both to the top-level frequenz.channels package, next to merge(), select() and LatestValueCache. They are small, generic channel utilities without extra types or dependencies of their own, unlike the receivers that have their own modules (event, file_watcher, timer).
  • Keep the old frequenz.channels.experimental names as deprecated aliases, made with frequenz.core.warnings.deprecated_aliases() (since="v1.13.0"). They stay the very same objects, so isinstance() works through both paths.
  • Point OptionalReceiver's deprecation message to the new frequenz.channels.NopReceiver.
  • Add both to the user guide, and test that the old names warn and the new ones don't, as the deprecations guide asks.

The old names are removed in v2.0.0 (#365).

Additional context

Depends on #576.

Pipe is not part of this: its behavior changes in #565, so moving it needs more than an alias, see #583.

#344 (customizing how WithPrevious stores the previous message) can be added later as a new keyword argument, so it doesn't block this.

Activity

  1. added this to the v1.13.0 milestone on Nov 5, 2026
  2. added
    type:enhancement
    part:experimental
    on Nov 5, 2026
  3. added a commit that references this issue on Nov 5, 2026
    adaddd6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:experimentaltype:enhancement

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions