Skip to content

Commit 7b78036

Browse files
committed
fix: add nonisolated init to AliveFlag for Swift 6 actor isolation
1 parent 8ccf528 commit 7b78036

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

TableProMobile/TableProMobile/SSH/SSHTunnel.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ final class AliveFlag: Sendable {
1313
private let _lock = NSLock()
1414
private nonisolated(unsafe) var _value = true
1515

16+
nonisolated init() {}
17+
1618
nonisolated var value: Bool {
1719
get { _lock.lock(); defer { _lock.unlock() }; return _value }
1820
set { _lock.lock(); _value = newValue; _lock.unlock() }

0 commit comments

Comments
 (0)