Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
12345678910111213141516171819202122232425package enum DriverReadback { package static func focusAfterRaising( raise: () throws -> Void, isUnsupported: (any Error) -> Bool, verifyFocus: () throws -> Bool ) throws -> Bool { do { try raise() } catch { guard isUnsupported(error) else { throw error } } return try verifyFocus() }
package static func untilTrue( deadline: ContinuousClock.Instant, now: () -> ContinuousClock.Instant, pause: () -> Void, read: () throws -> Bool ) throws -> Bool { repeat { if try read() { return true } guard now() < deadline else { return false } pause() } while true }}