AsyncSequence
extension AsyncSequence
-
Type erase any async sequence into an effect.
Declaration
Swift
public func eraseToEffect(id: String = UUID().uuidString) -> Effect<Self.Element>
Parameters
id
The ID of the efect. Default value:
UUID().uuidString
.Return Value
An effect.