Adapter-Async
view release on metacpan or search on metacpan
lib/Adapter/Async/OrderedList.pm view on Meta::CPAN
version 0.018
=head1 DESCRIPTION
=head2 Accessing data
=over 4
=item * count - resolves with the number of items. If this isn't possible, an estimate may be acceptable.
say "items: " . $adapter->count->get
=item * get - accepts a list of indices
$adapter->get(
items => [1,2,3],
on_item => sub { ... }
)->on_done(sub { warn "all done, full list of items: @{$_[0]}" })
The returned list of items are guaranteed not to be modified further, if you want to store the arrayref directly.
lib/Adapter/Async/OrderedList.pod view on Meta::CPAN
version 0.018
=head1 DESCRIPTION
=head2 Accessing data
=over 4
=item * count - resolves with the number of items. If this isn't possible, an estimate may be acceptable.
say "items: " . $adapter->count->get
=item * get - accepts a list of indices
$adapter->get(
items => [1,2,3],
on_item => sub { ... }
)->on_done(sub { warn "all done, full list of items: @{$_[0]}" })
The returned list of items are guaranteed not to be modified further, if you want to store the arrayref directly.
lib/Adapter/Async/UnorderedMap.pm view on Meta::CPAN
version 0.018
=head1 DESCRIPTION
=head2 Accessing data
=over 4
=item * count - resolves with the number of items. If this isn't possible, an estimate may be acceptable.
say "items: " . $adapter->count->get
=item * get - accepts a list of keys
$adapter->get(
items => [1,2,3],
on_item => sub { ... }
)->on_done(sub { warn "all done, full list of items: %{$_[0]}" })
Unlike the L<Adapter::Async::OrderedList/get> method, this resolves to a hashref.
lib/Adapter/Async/UnorderedMap.pod view on Meta::CPAN
version 0.018
=head1 DESCRIPTION
=head2 Accessing data
=over 4
=item * count - resolves with the number of items. If this isn't possible, an estimate may be acceptable.
say "items: " . $adapter->count->get
=item * get - accepts a list of keys
$adapter->get(
items => [1,2,3],
on_item => sub { ... }
)->on_done(sub { warn "all done, full list of items: %{$_[0]}" })
Unlike the L<Adapter::Async::OrderedList/get> method, this resolves to a hashref.
( run in 0.490 second using v1.01-cache-2.11-cpan-483215c6ad5 )