Skip to content

Commit 77dee2d

Browse files
Refactor ViewStore (pointfreeco#2496)
Co-authored-by: Stephen Celis <[email protected]>
1 parent eef1c90 commit 77dee2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ComposableArchitecture/ViewStore.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public final class ViewStore<ViewState, ViewAction>: ObservableObject {
315315
await withTaskCancellationHandler {
316316
await self.yield(while: predicate)
317317
} onCancel: {
318-
task.rawValue?.cancel()
318+
task.cancel()
319319
}
320320
}
321321

@@ -338,7 +338,7 @@ public final class ViewStore<ViewState, ViewAction>: ObservableObject {
338338
await withTaskCancellationHandler {
339339
await self.yield(while: predicate)
340340
} onCancel: {
341-
task.rawValue?.cancel()
341+
task.cancel()
342342
}
343343
}
344344

0 commit comments

Comments
 (0)