Skip to content
Discussion options

You must be logged in to vote

@lukeredpath I've got to run, but I have a few small comments that may help in the meantime. Will check back in later and read things in more depth if there's still more to figure out.

One thing that stands out in skimming this is that in withExtendedBackgroundExecution you wait for task.value, but the cancellation of that task will not be propagated to the caller unless you thread the cancellation through using Swift's withTaskCancellationHandler. We have an internal helper in TCA called Task.cancellableValue that does this work, since we need to do this dance a few places throughout the repo:

https://github.com/pointfreeco/swift-composable-architecture/blob/main/Sources/ComposableArchit…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@lukeredpath
Comment options

Comment options

You must be logged in to vote
2 replies
@lukeredpath
Comment options

@lukeredpath
Comment options

Answer selected by lukeredpath
Comment options

You must be logged in to vote
4 replies
@jshier
Comment options

@lukeredpath
Comment options

@lukeredpath
Comment options

@lukeredpath
Comment options

Comment options

You must be logged in to vote
1 reply
@dustinhowl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants