New deprecation warnings in prerelease/1.0
#1904
Replies: 4 comments 1 reply
-
Regarding the To perform a debounce using async, you just need to combine a cancellable in flight effect (using For |
Beta Was this translation helpful? Give feedback.
-
Glad you found workarounds to your problems, and we probably should also apply |
Beta Was this translation helpful? Give feedback.
-
@oliverfoggin Thanks for the feedback! Some good discussion here already, but here are our thoughts for each one:
|
Beta Was this translation helpful? Give feedback.
-
how does this work? this was my "workaround" (although maybe the message is helpful in that you don't need to wrap synchronous work in a Task?) @mbrandonw @stephencelis would also be curious to hear your thoughts on this. i see...
are you chewing on whether there'd be some sort of SynchronousEffect type for synchronous work that feeds back into the system? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know I'm early. Just eager to get stuck in 🤣
I'm getting a few deprecation warnings and I'm not entirely sure what some of them want us to change in the code.
.fireAndForget
But the async version has the same signature.
Our code:
The async version also specifies an optional parameter of
priority: TaskPriority
but if you exclude it the compiler thinks you're using the deprecated version instead..debounce
Our code:
I tried to use the
withTaskCancellation
which would allow for the task to be retried each time but it doesn't allow for a debounce like timer. So it would run each time the action is hit rather than waiting the 600ms as it would with the debounce above..deferred
We're running iOS15. Is there a solution for this with iOS15 support? I don't believe
Clock
is available pre iOS16.Thanks
Beta Was this translation helpful? Give feedback.
All reactions