79147261

Date: 2024-11-01 07:48:34
Score: 1
Natty:
Report link

When using .task modifer you are submit work to global concurrent Excutor, then it will submit job to coorperative pool which is a group of thread managed so it depends on coorperative pool to assign your job to a particular thread, therefore we can not exactly know which thread your code is running ( a special case is MainActor when we know that our code is run on Main Thread). Take a look at this excellent blog for more explain

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: duckSern1108