Skip to content

Commit f541438

Browse files
authored
Add @discardableResult to load functions
1 parent 31bcb1e commit f541438

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sources/SQLiteData/Fetch.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public struct Fetch<Value: Sendable>: Sendable {
9999
/// - database: The database to read from. A value of `nil` will use the default database
100100
/// (`@Dependency(\.defaultDatabase)`).
101101
/// - Returns: A subscription associated with the observation.
102+
@discardableResult
102103
public func load(
103104
_ request: some FetchKeyRequest<Value>,
104105
database: (any DatabaseReader)? = nil
@@ -139,6 +140,7 @@ extension Fetch {
139140
/// - scheduler: The scheduler to observe from. By default, database observation is performed
140141
/// asynchronously on the main queue.
141142
/// - Returns: A subscription associated with the observation.
143+
@discardableResult
142144
public func load(
143145
_ request: some FetchKeyRequest<Value>,
144146
database: (any DatabaseReader)? = nil,

0 commit comments

Comments
 (0)