/**
  * Static method to create your threads from functions ...
  **/
 public static function call($method, $params)
 {
     $thread = new Caller($method, $params);
     if ($thread->start()) {
         return $thread;
     }
 }
Example #2
0
 /**
  * Static method to create your threads from functions ...
  **/
 public static function call($method, $params)
 {
     $thread = new Caller($method, $params);
     if ($thread->start()) {
         return $thread;
     }
     /** else throw Nastyness **/
 }