NetNewsWire/Core/Sources/Core/Renamable.swift
2024-03-27 17:49:09 -07:00

25 lines
508 B
Swift

//
// Renamable.swift
// RSCore
//
// Created by Brent Simmons on 11/22/18.
// Copyright © 2018 Ranchero Software, LLC. All rights reserved.
//
import Foundation
/// For anything that can be renamed by the user.
public protocol Renamable {
/// Renames an object.
/// - Parameters:
/// - to: The new name for the object.
/// - completion: A block called when the renaming completes or fails.
/// - result: The result of the renaming.
@MainActor func rename(to: String) async throws
}