2022-10-31 13:41:19 +01:00
|
|
|
//
|
|
|
|
// StatusPublisher.swift
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Created by MainasuK on 2021-11-26.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
2023-03-01 14:58:12 +01:00
|
|
|
import Combine
|
2022-10-31 13:41:19 +01:00
|
|
|
|
|
|
|
public protocol StatusPublisher: ProgressReporting {
|
|
|
|
var state: Published<StatusPublisherState>.Publisher { get }
|
|
|
|
var reactor: StatusPublisherReactor? { get set }
|
|
|
|
func publish(api: APIService, authContext: AuthContext) async throws -> StatusPublishResult
|
|
|
|
}
|