Hi,

I think that with one process that's not possible.

The sleep function will delay the program execution for the specified  
amount of seconds, so... what you tell is happening is what should  
happen with that function.

So in your case I would recommend to spawn a new process in the  
background for whatever you need to do .

Cheers

On Oct 27, 2008, at 10:36 PM, Matias wrote:

>
> Hi there!
> I have a problem and maybe you guys could help me to resolve it…
> if i have this function:
>
> public function executeSleep()
> {
> sleep(10);
> }
>
> and if i run this function, i can’t run another function in the same
> project untill this 10 seconds are finished…
>
> Obviously, I don’t need a sleep(10) in my code, but I have some long
> process in one of my functions…
>
> I Hope you can help me… thank you veeery much!
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to