Skip to content

Instantly share code, notes, and snippets.

@athomason
Created May 19, 2011 23:09
Show Gist options
  • Save athomason/981999 to your computer and use it in GitHub Desktop.
Save athomason/981999 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Gearman::Worker;
my $worker = Gearman::Worker->new;
$worker->job_servers('127.0.0.1:7003');
$worker->register_function(test => sub {
return 1;
});
$worker->work while 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment