Implemented supervisors, refactored some stuff, implemented closures, updated examples and added dependency for Symfony\Process

This commit is contained in:
Netkas 2023-02-05 17:24:22 -05:00
parent 84b89eaf9d
commit 1b8d2fb40a
18 changed files with 707 additions and 190 deletions

View file

@ -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());