Convert renameFeed and renameFolder to async await.

This commit is contained in:
Brent Simmons
2024-03-27 17:49:09 -07:00
parent a7ba7e3b4a
commit 6ad90583a4
18 changed files with 263 additions and 107 deletions

View File

@@ -17,7 +17,8 @@ public protocol Renamable {
/// - to: The new name for the object.
/// - completion: A block called when the renaming completes or fails.
/// - result: The result of the renaming.
func rename(to: String, completion: @escaping (_ result: Result<Void, Error>) -> Void)
@MainActor func rename(to: String) async throws
}