No, there is no hard limit. There are, however, performance implications. If you dispatch too many tasks at once your app might start to lag.
Whats the Max number of tasks can be created in dispatch_async in an ios app
-
02-06-2022 - |
Domanda
Whats the Max number of tasks can be created with dispatch_async in the following scenario in an ios multitasking app
for(i=0 ; i<=? ; i++)
{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
// some code
});
}
is there any limit for i here ? any suggestions would be appreciated! thanx in advance
Soluzione 2
Altri suggerimenti
There is no hard limit. You might run out of memory like in any other code.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow