Skip to content

LoadableEnvironmentRepresentable

m-housh edited this page Aug 20, 2021 · 1 revision

LoadableEnvironmentRepresentable

An environment that can load an item.

public protocol LoadableEnvironmentRepresentable 

Requirements

LoadedValue

The type that the environment can load.

associatedtype LoadedValue

LoadRequest

The request type

associatedtype LoadRequest

Failure

The failure type.

associatedtype Failure: Error

load

The method that loads the item.

var load: (LoadRequest) -> Effect<LoadedValue, Failure> 

mainQueue

The main dispatch queue.

var mainQueue: AnySchedulerOf<DispatchQueue> 
Clone this wiki locally