Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion BitDream/TransmissionStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,11 @@ extension TransmissionStore {
func requestRefresh() {
Task { @MainActor [weak self] in
guard let self else { return }
_ = await self.refreshNow()
await self.refreshNow()
}
}

@discardableResult
func refreshNow() async -> RefreshOutcome {
guard let activeConnection else { return .unavailable }

Expand Down Expand Up @@ -775,6 +776,7 @@ extension TransmissionStore {
}
}

@discardableResult
private func performFullRefresh(for connectionState: ActiveConnection) async -> RefreshOutcome {
do {
let snapshot = try await connectionState.connection.fetchAppRefreshSnapshot()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI

@MainActor
extension TorrentDetailSupplementalStore {
@discardableResult
func load(
for identity: TorrentDetailIdentity,
using store: TransmissionStore,
Expand Down Expand Up @@ -66,6 +67,7 @@ extension TorrentDetailSupplementalStore {
)
}

@discardableResult
func loadIfIdle(
for identity: TorrentDetailIdentity,
using store: TransmissionStore,
Expand Down
Loading