Updated some documentation on the source code in the library target.

This commit is contained in:
2026-07-26 10:37:07 +02:00
parent fb95989d83
commit 6c6dc59b80
4 changed files with 10 additions and 4 deletions
@@ -15,6 +15,8 @@
import Foundation
/// A type that implements the service that uses a client to make calls.
///
/// This service forwards every call to the ``AmiiboClient`` client injected during initialization, which defaults to an ``AmiiboLiveClient`` instance. This type is `Sendable`, so an instance can be safely shared across concurrency domains.
public struct AmiiboService: Sendable {
// MARK: Properties
@@ -83,7 +85,7 @@ public struct AmiiboService: Sendable {
}
/// Gets the date when the data was last updated.
/// - Returns: A last updated date.
/// - Returns: A last updated date, decoded as UTC.
/// - Throws: An ``AmiiboServiceError`` error in case some issue is encountered while generating the result.
public func getLastUpdated() async throws(AmiiboServiceError) -> Date {
try await client.getLastUpdated()