Wait until Tor becomes active

The TorPlugin publishes a StateFlow with its own state that consumers can collect and wait for the right state.

This is implemented for the CLI for now.
1 job for !52 with setup-state in 4 minutes and 37 seconds (queued for 12 minutes and 18 seconds)
latest detached
Status Name Job ID Coverage
  Test
passed test #13765

00:04:37