Created
August 31, 2013 19:22
-
-
Save vvondra/6400085 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__ . '/../vendor/autoload.php'; | |
class Sleeper extends PHPDaemon\Daemon { | |
public function run() { | |
while (true) { | |
echo "zzzZZZzzz...\n"; | |
sleep(2); | |
} | |
} | |
} | |
PHPDaemon\Daemon::parseArgs(new Sleeper); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment