-
Notifications
You must be signed in to change notification settings - Fork 0
LoadablePickerEnvironment
m-housh edited this page Aug 23, 2021
·
1 revision
Represents the environment for a loadable list.
public struct LoadablePickerEnvironment<Element, LoadRequest, Failure: Error>
Create a new environment.
public init(
load: @escaping (LoadRequest) -> Effect<[Element], Failure>,
mainQueue: AnySchedulerOf<DispatchQueue>
)
- load: Load the items.
- mainQueue: The main dispatch queue.
Wraps a LoadableEnvironmentRepresentable
in a LoadablePickerEnvironment
public init<Environment: LoadableEnvironmentRepresentable>(
environment loadableEnvironment: Environment
)
where
Environment.LoadedValue == [Element],
Environment.LoadRequest == LoadRequest,
Environment.Failure == Failure
- environment: The loadable environment to transform into a list environment.
Load the items.
public var load: (LoadRequest) -> Effect<[Element], Failure>
The main dispatch queue.
public var mainQueue: AnySchedulerOf<DispatchQueue>
DEBUG
-
A concrete
LoadablePickerEnvironment
that fails when used.public static var failing: Self
A concrete LoadablePickerEnvironment
that does nothing.
public static var noop: Self
Generated at 2021-08-23T22:43:49+0000 using swift-doc 1.0.0-rc.1.
Types
- EditButton
- EditMode
- EditModeAction
- EmptyLoadRequest
- ListAction
- LoadError
- Loadable
- LoadableAction
- LoadableEnvironment
- LoadableForEachAction
- LoadableForEachEnvironment
- LoadableForEachState
- LoadableForEachStore
- LoadableList
- LoadableListAction
- LoadableListEnvironment
- LoadableListState
- LoadablePicker
- LoadablePickerAction
- LoadablePickerEnvironment
- LoadablePickerState
- LoadableView
- User
- UserAction