Skip to content

OneshotReceiver.close() raises NotImplementedError #592

Closed

Description

@llucax

What happened?

OneshotReceiver doesn't implement close(), so it inherits the base Receiver.close(), which raises NotImplementedError("close() must be implemented by subclasses"). Calling close() on the receiver of a OneshotChannel, directly or through a map() or filter() wrapper, fails.

What did you expect instead?

close() works like in the other receivers: after it, no new message is received, and receiving raises ReceiverStoppedError once anything already received is consumed.

Affected version(s)

v1.11.0 (when OneshotChannel was added) to v1.12.0

Affected part(s)

Channels, Broadcast, Anycast, etc. (part:channels)

Extra information

This also blocks #580: making Receiver.close() abstract in v2.0.0 would make OneshotChannel() fail as soon as it creates its receiver.

Activity

  1. added this to the v1.13.0 milestone on Nov 6, 2026
  2. added
    type:bug
    part:channels
    on Nov 6, 2026
  3. added a commit that references this issue on Nov 9, 2026
    beecd91
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:channelstype:bug

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions