Sha256: c11ebacacd24bbd8c8253a3afc5c29effc683ccd14365e48263fd6b0002dc309
Contents?: true
Size: 559 Bytes
Versions: 5
Compression:
Stored size: 559 Bytes
Contents
<?php /** * Sum up a bunch of numbers * * @author Ladislav Martincik <ladislav.martincik@xing.com> * @package Net_Gearman */ class Net_Gearman_Job_Sleep extends Net_Gearman_Job_Common { /** * Run the Sleep job * * @access public * @param array $arg * @return array */ public function run($arg) { $seconds = $arg['seconds']; echo $seconds; while ($seconds > 0) { print $seconds; sleep(1); $this->status($i, $seconds); $seconds--; } return true; } } ?>
Version data entries
5 entries across 5 versions & 1 rubygems