App::Koyomi::Semaphore - koyomi semaphore
use App::Koyomi::Semaphore; if (App::Koyomi::Semaphore->consume(%args)) { # Succeeded to consume semaphore } else { # Failed to consume semaphore }
This module represents semaphore for exclusive job execution.
Try to consume semaphore. Return true when successful.
YASUTAKE Kiyoshi <yasutake.kiyoshi@gmail.com>
Copyright (C) 2015 YASUTAKE Kiyoshi.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. That means either (a) the GNU General Public License or (b) the Artistic License.
To install App::Koyomi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Koyomi
CPAN shell
perl -MCPAN -e shell install App::Koyomi
For more information on module installation, please visit the detailed CPAN module installation guide.