Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/ComposableArchitecture/Effects/Cancellation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extension Effect {
/// return .run { send in
/// await send(
/// .userResponse(
/// TaskResult { try await self.apiClient.loadUser() }
/// await Result { try await self.apiClient.loadUser() }
/// )
/// )
/// }
Expand Down Expand Up @@ -151,7 +151,7 @@ extension Effect {
/// try await withTaskCancellation(id: CancelID.response, cancelInFlight: true) {
/// try await self.clock.sleep(for: .seconds(0.3))
/// await send(
/// .debouncedResponse(TaskResult { try await environment.request() })
/// .debouncedResponse(await Result { try await environment.request() })
/// )
/// }
/// }
Expand Down
2 changes: 1 addition & 1 deletion Sources/ComposableArchitecture/Effects/Debounce.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extension Effect {
/// return .run { send in
/// await send(
/// .searchResponse(
/// TaskResult { await self.apiClient.search(text) }
/// await Result { await self.apiClient.search(text) }
/// )
/// )
/// }
Expand Down
2 changes: 1 addition & 1 deletion Sources/ComposableArchitecture/Effects/TaskResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/// return .run { send in
/// await send(
/// .factResponse(
/// TaskResult { try await self.numberFact.fetch(state.number) }
/// await Result { try await self.numberFact.fetch(state.number) }
/// )
/// )
/// }
Expand Down
Loading