79274433

Date: 2024-12-12 09:15:42
Score: 1.5
Natty:
Report link

Yes you want to use detached task in this case to get the other task out of the main actor. per Apple documentation unstructured concurrency

To create an unstructured task that’s not part of the current actor, known more specifically as a detached task, call the Task.detached(priority:operation:) class method.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user20325868