Skip to content

Commit ed4c236

Browse files
authored
Send completion for cancellation subject (#997)
1 parent 620ec5c commit ed4c236

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/ComposableArchitecture/Effects/Cancellation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ extension Effect {
4747
cancellationCancellable = AnyCancellable {
4848
cancellablesLock.sync {
4949
cancellationSubject.send(())
50+
cancellationSubject.send(completion: .finished)
5051
cancellationCancellables[id]?.remove(cancellationCancellable)
5152
if cancellationCancellables[id]?.isEmpty == .some(true) {
5253
cancellationCancellables[id] = nil

0 commit comments

Comments
 (0)