Skip to content

Commit fac6c98

Browse files
committed
fix: Fix potential main thread issue in DispatchQueue that currently only seems to show up in linux.
1 parent b698b1b commit fac6c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/DispatchAsync/DispatchQueue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class DispatchQueue: @unchecked Sendable {
7272
} else {
7373
if isMain {
7474
Task { @MainActor [work] in
75-
DispatchQueue.$isMain.withValue(true) {
75+
DispatchQueue.$isMain.withValue(true) { @MainActor [work] in
7676
work()
7777
}
7878
}

0 commit comments

Comments
 (0)