Convos
view release on metacpan or search on metacpan
lib/Convos.pm view on Meta::CPAN
my $redis = $self->redis;
$self->delay(
sub {
my ($delay) = @_;
$redis->lrange('convos:secrets', 0, -1, $delay->begin);
$redis->getset('convos:secrets:lock' => 1, $delay->begin);
$redis->expire('convos:secrets:lock' => 5);
},
sub {
my ($delay, $secrets, $locked) = @_;
$secrets ||= $self->config->{secrets};
return $self->app->secrets($secrets) if $secrets and @$secrets;
return $self->_set_secrets if $locked;
$secrets = [md5_sum rand . $$ . time];
$self->app->secrets($secrets);
$redis->lpush('convos:secrets', $secrets->[0]);
$redis->del('convos:secrets:lock');
},
);
}
sub DESTROY {
my $self = shift;
lib/Convos/public/js/jquery.js view on Meta::CPAN
return !list;
},
// Lock the list in its current state
lock: function() {
stack = undefined;
if ( !memory ) {
self.disable();
}
return this;
},
// Is it locked?
locked: function() {
return !stack;
},
// Call all callbacks with the given context and arguments
fireWith: function( context, args ) {
if ( list && ( !fired || stack ) ) {
args = args || [];
args = [ context, args.slice ? args.slice() : args ];
if ( firing ) {
stack.push( args );
} else {
lib/Convos/public/packed/jquery-3d93b072d14f2bd1ede58f4847f537fd.js view on Meta::CPAN
return !list;
},
// Lock the list in its current state
lock: function() {
stack = undefined;
if ( !memory ) {
self.disable();
}
return this;
},
// Is it locked?
locked: function() {
return !stack;
},
// Call all callbacks with the given context and arguments
fireWith: function( context, args ) {
if ( list && ( !fired || stack ) ) {
args = args || [];
args = [ context, args.slice ? args.slice() : args ];
if ( firing ) {
stack.push( args );
} else {
( run in 0.681 second using v1.01-cache-2.11-cpan-26ccb49234f )