>
> my $end = $delay->begin;
>

The first argument gets ignored by default.

    my $end = $delay->begin(0);
 

> $mango->db('foo')->collection('bar')->find_one({ ... } => sub { 
>    my ($coll, $err, $doc) = (@_); 
>    $end->($doc); 
> });
>

But i'd rather splice away the arguments i'm interested in anyway.

    $mango->db('foo')->collection('bar')->find_one({ ... } => 
$delay->begin(2, 1));

--
sebastian

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to