You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Receiver.close()abstract #580Implement `OneshotReceiver.close()` (frequenz-floss#593)