/** * Static method to create your threads from functions ... **/ public static function call($method, $params) { $thread = new Caller($method, $params); if ($thread->start()) { return $thread; } }
/** * 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 **/ }