<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Tor",
  "identifier" : "/documentation/Tor/TorClient/waitUntilBootstrapped()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Tor"
    ],
    "preciseIdentifier" : "s:3Tor0A7SessionPAAE21waitUntilBootstrappedyyYaKF::SYNTHESIZED::s:3Tor0A6ClientC"
  },
  "title" : "waitUntilBootstrapped()"
}
-->

# waitUntilBootstrapped()

Wait up to the default 120-second bootstrap window.

```
func waitUntilBootstrapped() async throws
```

## Discussion

Convenience shorthand for the overwhelmingly common case in which
the caller has no opinion about the timeout: 120 seconds is long
enough to cover cold boots on slow connections but short enough
that failure surfaces well before the user gives up. Forwards
directly to [`waitUntilBootstrapped(timeout:)`](/documentation/Tor/TorClient/waitUntilBootstrapped(timeout:)) with
`.seconds(120)`.

> Throws: ``doc://Tor/documentation/Tor/TorError/timeout`` if bootstrap exceeds 120 seconds,
> ``doc://Tor/documentation/Tor/TorError/notStarted`` if the session is not running.

> Note: For CI jobs, tests, or interactive UIs that want to show
> a spinner timeout sooner, call the full
> ``doc://Tor/documentation/Tor/TorClient/waitUntilBootstrapped(timeout:)`` with a tighter
> `Duration`.