The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Koyomi::Semaphore - koyomi semaphore

SYNOPSIS

    use App::Koyomi::Semaphore;
    if (App::Koyomi::Semaphore->consume(%args)) {
        # Succeeded to consume semaphore
    } else {
        # Failed to consume semaphore
    }

DESCRIPTION

This module represents semaphore for exclusive job execution.

METHODS

consume

Try to consume semaphore. Return true when successful.

AUTHORS

YASUTAKE Kiyoshi <yasutake.kiyoshi@gmail.com>

LICENSE

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.