diff --git a/Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0005.swift b/Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0005.swift index b5443ae86b63..df2d34f49f27 100644 --- a/Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0005.swift +++ b/Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0005.swift @@ -18,7 +18,7 @@ struct AddContactFeature: ReducerProtocol { func reduce(into state: inout State, action: Action) -> EffectTask { switch action { case .cancelButtonTapped: - return .fireAndForget { await self.dismiss() } + return .run { _ in await self.dismiss() } case .delegate: return .none diff --git a/Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0006.swift b/Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0006.swift index 29c23ec2c583..0167451ca634 100644 --- a/Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0006.swift +++ b/Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0006.swift @@ -18,7 +18,7 @@ struct AddContactFeature: ReducerProtocol { func reduce(into state: inout State, action: Action) -> EffectTask { switch action { case .cancelButtonTapped: - return .fireAndForget { await self.dismiss() } + return .run { _ in await self.dismiss() } case .delegate: return .none