I have the following method:
public void Contar()
{
int numero = 1;
for (int i = 0; i < 100000; i++)
{
numero *= i
}
return numero
}
Assuming that the Contar()
method takes so long to crash the UI of my application, how do I make the method asynchronous?