If you use PHP-FPM you could try to come with some solution using the 
fastcgi_finish_request(); function provided by that PHP version. We use it in 
prod quite a lot, but it depends on using PHP-FPM.


On Apr 9, 2010, at 3:25 PM, Frank Stelzer wrote:

> Asynchronous executing is not possible, as there are no threads in PHP.
> However you could create a new shell task in your event listener. This 
> process will run independant from your current PHP process.
> 
> Am 08.04.2010 um 18:50 schrieb Dong YANG:
> 
>> Hello everyone,
>> 
>>       I have a question about event dispatcher. Is that possible to call an 
>> event dispatcher on asynchronous mode.
>> 
>>       Because in my function i need to launch an event which takes some 
>> seconds, so i just want to continue the rest of the function instead of 
>> waiting the end of event function. Is that possible in symfony event 
>> dispatcher?
>> 
>>       Any suggestion is welcomed.
>> 
>>      Thanks and Regards,
>> 
>> JoJo
>> 
>> -- 
>> If you want to report a vulnerability issue on symfony, please send it to 
>> security at symfony-project.com
>>  
>> 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
> 
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>  
> 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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to