Skip to content

Commit c9b9c81

Browse files
committed
Future direction for ~Copyable elements
1 parent baf72ef commit c9b9c81

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: Evolution/0016-mutli-producer-single-consumer-channel.md

+8
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,14 @@ An adaptive strategy regulates the backpressure based on the rate of
732732
consumption and production. With the proposed new APIs we can easily add further
733733
strategies.
734734

735+
### Support `~Copyable` elements
736+
737+
In the future, we can extend the channel to support `~Copyable` elements. We
738+
only need an underlying buffer primitive that can hold `~Copyable` types and the
739+
continuations need to support `~Copyable` elements as well. By making the
740+
channel not directly conform to `AsyncSequence` we can support this down the
741+
road.
742+
735743
## Alternatives considered
736744

737745
### Provide an `onTermination` callback to the factory method

0 commit comments

Comments
 (0)