Skip to content

Commit 0ac46b3

Browse files
authored
Remove TaskResult from docs (#3792)
1 parent b21a87a commit 0ac46b3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/ComposableArchitecture/Effects/Cancellation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extension Effect {
1717
/// return .run { send in
1818
/// await send(
1919
/// .userResponse(
20-
/// TaskResult { try await self.apiClient.loadUser() }
20+
/// await Result { try await self.apiClient.loadUser() }
2121
/// )
2222
/// )
2323
/// }
@@ -151,7 +151,7 @@ extension Effect {
151151
/// try await withTaskCancellation(id: CancelID.response, cancelInFlight: true) {
152152
/// try await self.clock.sleep(for: .seconds(0.3))
153153
/// await send(
154-
/// .debouncedResponse(TaskResult { try await environment.request() })
154+
/// .debouncedResponse(await Result { try await environment.request() })
155155
/// )
156156
/// }
157157
/// }

Sources/ComposableArchitecture/Effects/Debounce.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extension Effect {
1515
/// return .run { send in
1616
/// await send(
1717
/// .searchResponse(
18-
/// TaskResult { await self.apiClient.search(text) }
18+
/// await Result { await self.apiClient.search(text) }
1919
/// )
2020
/// )
2121
/// }

Sources/ComposableArchitecture/Effects/TaskResult.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
/// return .run { send in
3939
/// await send(
4040
/// .factResponse(
41-
/// TaskResult { try await self.numberFact.fetch(state.number) }
41+
/// await Result { try await self.numberFact.fetch(state.number) }
4242
/// )
4343
/// )
4444
/// }

0 commit comments

Comments
 (0)