Skip to content

Commit

Permalink
Merge pull request #200 from klaviyo/ab/CHNL-11785/iOS-Concurrency-is…
Browse files Browse the repository at this point in the history
…sues

[CHNL-11785] fixed concurrency issue
  • Loading branch information
ab1470 authored Sep 16, 2024
2 parents 4515e81 + 8436fea commit db71c65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ final class Store<State, Action> {
}

guard !tasks.wrappedValue.isEmpty else { return nil }
return Task {
return Task { @MainActor in
await withTaskCancellationHandler {
var index = tasks.wrappedValue.startIndex
while index < tasks.wrappedValue.endIndex {
Expand Down

0 comments on commit db71c65

Please sign in to comment.