SwiftstructDataFlow

struct DataFlow.AsyncStateResolver

Members 8

  1. fieldlet fetchValue: () async throws -> B+0x10
  2. fieldlet keyPath: WritableKeyPath<A.Feature.SharedState, DataFlow.AsyncState<B>>+0x8
  3. fieldlet store: DataFlow.Store<A>+0x0
  4. funcrefresh() -> ()
  5. funcreset() -> ()
  6. funcresolve() -> ()
  7. funcresolved(to: Result<B, Error>) -> ()
  8. initinit(store: DataFlow.Store<A>, keyPath: WritableKeyPath<A.SharedState, DataFlow.AsyncState<B>>, fetchValue: () async throws -> B) -> DataFlow.AsyncStateResolver<A, B>
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>)
}