SwiftstructDataFlow
AsyncStateResolver
struct DataFlow.AsyncStateResolver
Members 8
- field
let fetchValue: () async throws -> B+0x10 - field
let keyPath: WritableKeyPath<A.Feature.SharedState, DataFlow.AsyncState<B>>+0x8 - field
let store: DataFlow.Store<A>+0x0 - func
refresh() -> () - func
reset() -> () - func
resolve() -> () - func
resolved(to: Result<B, Error>) -> () - init
init(store: DataFlow.Store<A>, keyPath: WritableKeyPath<A.SharedState, DataFlow.AsyncState<B>>, fetchValue: () async throws -> B) -> DataFlow.AsyncStateResolver<A, B>
Header
struct AsyncStateResolver<A, B> where A: DataFlow.Feature, B: Swift.Equatable { let store: DataFlow.Store<A> let keyPath: Swift.WritableKeyPath<A.SharedState, DataFlow.AsyncState<B>> let fetchValue: () async throws -> B init(store: DataFlow.Store<A>, keyPath: Swift.WritableKeyPath<A.SharedState, DataFlow.AsyncState<B>>, fetchValue: @escaping () async throws -> B) func reset() func refresh() func resolve() func resolved(to: Swift.Result<B, any Swift.Error>) }