Closed kaunteya closed 1 year ago
Hi I have this snippet in my code
extension TreeSitterClient { func currentTree() async throws -> Tree? { try await withCheckedThrowingContinuation { continuation in currentTree() { result in switch result { case .failure: continuation.resume(returning: nil) case .success(let tree): continuation.resume(returning: tree) } } } } }
Do you think it would make sense to have this function in the repo? I can open a PR
I think this makes a lot of sense! That PR would be very appreciated.
Hi I have this snippet in my code
Do you think it would make sense to have this function in the repo? I can open a PR