AsyncSelector
public struct AsyncSelector<T> : AsyncSelectorNode where T : Equatable
A AsyncSelector is a pure function that other async selectors as input. those selector be impletemented
by Combine or async/await
Selector and AsyncSelector can not allow you pass a user-defined argument, if you want to pass a
customable parameters. please refer to selectorFamily
-
Undocumented
Declaration
Swift
public let key: NodeKey -
Undocumented
Declaration
Swift
public let get: (StateGetter) async throws -> T -
Undocumented
Declaration
Swift
public init<E>(key: NodeKey, get: @escaping CombineGet<T, E>) where E : Error -
getValue(_:Asynchronous) Undocumented
Declaration
Swift
public func getValue(_ accessor: StateGetter) async throws -> T
AsyncSelector Structure Reference