File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Sources/ComposableArchitecture/Effects Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 /// }
Original file line number Diff line number Diff 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 /// }
Original file line number Diff line number Diff line change 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/// }
You can’t perform that action at this time.
0 commit comments