---
title: "init(_:)"
framework: synchronization
role: symbol
role_heading: Initializer
path: "synchronization/mutex/init(_:)"
---

# init(_:)

Initializes a value of this mutex with the given initial state.

## Declaration

```swift
init(_ initialValue: consuming sending Value)
```

## Parameters

- `initialValue`: The initial value to give to the mutex.
