Skip to content

Commit 909aaa6

Browse files
Update 0424-custom-isolation-checking-for-serialexecutor.md
1 parent cd8dacd commit 909aaa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0424-custom-isolation-checking-for-serialexecutor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Specific use-cases of this API include `DispatchSerialQueue`, which would be abl
133133
// Dispatch
134134

135135
extension DispatchSerialQueue {
136-
public func checkIsolated(message: String) {
136+
public func checkIsolated() {
137137
dispatchPrecondition(condition: .onQueue(self)) // existing Dispatch API
138138
}
139139
}
@@ -192,7 +192,7 @@ The custom heurystics that are today part of the Swift Concurrency runtime to de
192192
```swift
193193
// concurrency runtime pseudo-code
194194
if expectedExecutor.isMainActor() {
195-
expectedExecutor.checkIsolated(message: message)
195+
expectedExecutor.checkIsolated()
196196
}
197197
```
198198

0 commit comments

Comments
 (0)