Open
Description
Is your feature request related to a problem? Please describe.
Select with part of it cfg-gated. Like #[cfg(not(windows))]
.
Describe the solution you'd like
tokio::select! {
#[cfg(not(windows))]
Some(signal) = self.signals.next() => ...
}
Describe alternatives you've considered
I think the macro could take in a meta
but that includes other non-cfg stuff, not sure if we want that.
The only workaround is to duplicate the whole block with if cfg!
.
Activity