Skip to content

Commit a70edf1

Browse files
Update readme
1 parent 2e6494e commit a70edf1

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -288,16 +288,11 @@ can be `.checked` (the default) or `.unchecked`, allowing you to control the
288288
`Sendable` conformance of the generated mock. In most cases, the default is
289289
preferred and this argument can be omitted.
290290

291-
- Default: `.checked`
292-
- When set to `.checked`, the mock's Sendability is inherited from its
293-
underlying implementation and verified by the compiler as usual. No
294-
additonal annotations or Sendable conformance are added.
295-
- Alternatively: `.unchecked`
296-
- When set to `.unchecked`, the generated mock will explicitly conform to
297-
`@unchecked Sendable`.
298-
- This is useful when you need your mock to be `Sendable` but cannot satisfy
299-
strict compiler checks and know your usage is concurrency-safe.
300-
291+
Default: `.checked`
292+
- When set to `.checked`, the mock's Sendability is inherited from its
293+
underlying implementation and verified by the compiler as usual. No
294+
additonal annotations or Sendable conformance are added.
295+
301296
```swift
302297
@Mocked
303298
protocol Dependency: Sendable {}
@@ -315,6 +310,12 @@ final class DependencyMock: Dependency {}
315310
#endif
316311
```
317312

313+
Alternatively: `.unchecked`
314+
- When set to `.unchecked`, the generated mock will explicitly conform to
315+
`@unchecked Sendable`.
316+
- This is useful when you need your mock to be `Sendable` but cannot satisfy
317+
strict compiler checks and know your usage is concurrency-safe.
318+
318319
```swift
319320
@Mocked(sendableConformance: .unchecked)
320321
protocol Dependency: Sendable {}

0 commit comments

Comments
 (0)