# waitForSocketClosure(_:)

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-swift/blob/6b51d1408b55b8583825c6595405d08e728674bf/Tests/TmuxFixture/TmuxFixture.swift#L343
- **Page:** https://libtmux.org/en/swift/latest/reference/waitforsocketclosure(_-)/

```
waitForSocketClosure(_:)(path: String) -> Bool
```

Waits for a stopped daemon's Unix listener to close before reusing its path.

## Parameters

- `path` (`String`)

## Raises

- `any Error`
