Tokio: Wait for multiple signals

I want to wait for SIGINT and SIGTERM, and potentially other signals. Is this one of those select moments? Is there a simple way to wait for an arbitrary number of signals?

  let mut stream = signal(SignalKind::terminate())?;
  stream.recv().await;

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.