20 lines
446 B
Swift
20 lines
446 B
Swift
import Foundation
|
|
|
|
public enum ProviderInteraction: Sendable, Equatable {
|
|
case background
|
|
case userInitiated
|
|
}
|
|
|
|
public enum ProviderInteractionContext {
|
|
@TaskLocal public static var current: ProviderInteraction = .background
|
|
}
|
|
|
|
public enum ProviderRefreshPhase: Sendable, Equatable {
|
|
case regular
|
|
case startup
|
|
}
|
|
|
|
public enum ProviderRefreshContext {
|
|
@TaskLocal public static var current: ProviderRefreshPhase = .regular
|
|
}
|