<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Tor",
  "identifier" : "/documentation/Tor/TorState/running",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Tor"
    ],
    "preciseIdentifier" : "s:3Tor0A5StateO7runningyA2CmF"
  },
  "title" : "TorState.running"
}
-->

# TorState.running

The embedded control socket is ready and `tor_run_main()` is
executing.

```
case running
```

## Discussion

Reaching `.running` guarantees: [`socksEndpoint`](/documentation/Tor/TorClient/socksEndpoint) is
non-`nil`, [`control()`](/documentation/Tor/TorClient/control()) returns a usable client, and
[`TorEvent.bootstrap(progress:tag:summary:)`](/documentation/Tor/TorEvent/bootstrap(progress:tag:summary:)) events are flowing on [`events`](/documentation/Tor/TorSession/events).
It does **not** guarantee 100% bootstrap — guard-negotiation and
consensus download are still in flight. [`isOperational`](/documentation/Tor/TorState/isOperational)
returns `true` exactly for this case.