Skip to content

Commit 927eaba

Browse files
committed
Rewrap long lines
1 parent 6886c41 commit 927eaba

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

TSPL.docc/ReferenceManual/Attributes.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,17 @@ including important milestones.
211211
```
212212
The *version number* consists of one to three positive integers, separated by periods.
213213

214-
- The `noasync` argument indicates that the declared symbol can't be used directly
214+
- The `noasync` argument indicates that
215+
the declared symbol can't be used directly
215216
in an asynchronous context.
216217

217218
Because Swift concurrency can resume on a different thread
218219
after a potential suspension point,
219220
using elements like thread-local storage, locks, mutexes, or semaphores
220221
across suspension points can lead to incorrect results.
221222

222-
To avoid this problem, add an `@available(*, noasync)` attribute to the symbol's declaration:
223+
To avoid this problem,
224+
add an `@available(*, noasync)` attribute to the symbol's declaration:
223225

224226
```swift
225227
extension pthread_mutex_t {
@@ -248,7 +250,8 @@ including important milestones.
248250
}
249251
```
250252

251-
If you can guarantee that your code uses a potentially unsafe symbol in a safe manner,
253+
If you can guarantee that your code
254+
uses a potentially unsafe symbol in a safe manner,
252255
you can wrap it in a synchronous function and call that function
253256
from an asynchronous context.
254257

0 commit comments

Comments
 (0)