Skip to content

Commit 382e44f

Browse files
authored
Add missing try, remove . (#2319)
1 parent 34463e0 commit 382e44f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ComposableArchitecture/Effects/Cancellation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ extension EffectPublisher {
133133
/// // ...
134134
///
135135
/// return .run { send in
136-
/// await withTaskCancellation(id: CancelID.response, cancelInFlight: true) {
136+
/// try await withTaskCancellation(id: CancelID.response, cancelInFlight: true) {
137137
/// try await self.clock.sleep(for: .seconds(0.3))
138-
/// await .send(
138+
/// await send(
139139
/// .debouncedResponse(TaskResult { try await environment.request() })
140140
/// )
141141
/// }

0 commit comments

Comments
 (0)