Skip to content

mash/NinNin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

NinNin - casual background processing

SYNOPSIS

use NinNin;
use NinNin::Backend::Gearman;

# run gearman worker pool beforehand
# my $worker = NinNin::Backend::Gearman->new({
#   job_servers => $job_servers,
# });
# $worker->register_function;
# $worker->work while 1;

NinNin->setup({
  backend => NinNin::Backend::Gearman->new({
    job_servers => [ '127.0.0.1:4730' ]
  })
});

my $background_job = ninnin(
  sub {
    my (@args) = @_;
    # run in gearman worker
    # ...heavy work...
  },
);
$background_job->( @args ) # run background job with argument

DESCRIPTION

NinNin is a casual background processing framework

AUTHOR

mash <o.masakazu@gmail.com>

Daisuke Murase <typester@cpan.org>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

About

casual background processing for perl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages