The Perils of Task.detached #211
Replies: 1 comment 3 replies
-
Ideally you should not be using
Is there a reason you can't just use I also think this code should just generally be refactored to either fully lean into Combine or lean into async/await. Right now it's a mishmash of both, and I think that's causing more indirection than necessary. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the following code, you can see where the detached task causes problems for me.
So the following test results in
unimplemented
forcontinuousClock
.The solution is to move the
continuousClock
line so it's not within the detached.However, the fix is not so simple in my App code (not the above example code). I can't just move a single line like this. How could I solve the above problem without moving
continuousClock
?Beta Was this translation helpful? Give feedback.
All reactions