Make the select! macro work with newrt pipes. #8342
Labels
A-concurrency
Area: Concurrency
A-syntaxext
Area: Syntax extensions
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Old pipes used a common
RecvPacketBuffered
struct that all types of pipes shared in common to enable heterogeneous select. I've made a version that uses traits for new runtime ports, as can be seen in libstd/rt/select.rs. (But a &Trait bug prevents the heterogeneous version from working currently.)Anyway, I have no idea how the old select! macro translated its input to something that used the select function. But the
select2
function I added demonstrates how you could create a list of arbitrary length of heterogeneous selectables, and select on them, so we ought to be able to port the select! macro to it.related #5160 #6842
nominating feature-complete
The text was updated successfully, but these errors were encountered: