Implemented supervisors, refactored some stuff, implemented closures, updated examples and added dependency for Symfony\Process
This commit is contained in:
parent
84b89eaf9d
commit
1b8d2fb40a
18 changed files with 707 additions and 190 deletions
|
@ -8,9 +8,7 @@
|
|||
|
||||
import('net.nosial.tamerlib', 'latest');
|
||||
|
||||
Tamer::connect(ProtocolType::Gearman, Mode::Worker,
|
||||
['127.0.0.1:4730']
|
||||
);
|
||||
Tamer::initWorker();
|
||||
|
||||
Tamer::addFunction('sleep', function(\Tamer\Objects\Job $job) {
|
||||
sleep($job->getData());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue