Enables a process to execute within it’s own thread.
Warning
Threaded functionality within XPSPL is highly experiemental...
This has not been tested in a production environment.
Note
To enable threads you must install and enable the PECL pthreads extension.
Once installed threads will be automatically enabled.
Executing processes in their own thread.
<?php
xp_signal(XP_SIG('foo'), threaded_process(function($sig){
print 'Executed in own thread';
sleep(10);
});
:param callable: PHP Callable
:rtype: void