Skip to content

Commit 33536b0

Browse files
committed
chore: Fix incomplete comment.
1 parent a29c5aa commit 33536b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/DispatchAsync/DispatchSemaphore.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public class DispatchSemaphore: @unchecked Sendable {
5959
public func wait() {
6060
// NOTE: wasm is currently mostly single threaded.
6161
// And we don't have a Thread.sleep API yet.
62-
// So
62+
// So assert that we're on the main actor here. Usage from other
63+
// actors is not currently supported.
6364
MainActor.assertIsolated()
6465
assert(value > 0, "DispatchSemaphore is currently only designed for single-threaded use.")
6566
value -= 1

0 commit comments

Comments
 (0)