AnyEvent-DBus
view release on metacpan or search on metacpan
...
});
$bus->get_connection->send (...);
=head1 DESCRIPTION
This module is an L<AnyEvent> user, you need to make sure that you use and
run a supported event loop.
Loading this module will install the necessary magic to seamlessly
integrate L<Net::DBus> into L<AnyEvent>. It does this by quite brutally
hacking L<Net::DBus::Reactor> so that all dbus connections created after
loading this module will automatically be managed by this module.
Note that a) a lot inside Net::DBus is still blocking b) if you call a
method that blocks, you again block your process (basically anything
but calls to the Net::DBus::Binding::Connection objects block, but see
Net::DBus::Annoation, specifically dbus_call_async) c) the underlying
libdbus is often blocking itself, even with infinite timeouts and d) this
module only implements the minimum API required to make Net::DBus work -
my @data = $_[0]->get_result
...
});
$bus->get_connection->send (...);
DESCRIPTION
This module is an AnyEvent user, you need to make sure that you use and
run a supported event loop.
Loading this module will install the necessary magic to seamlessly
integrate Net::DBus into AnyEvent. It does this by quite brutally
hacking Net::DBus::Reactor so that all dbus connections created after
loading this module will automatically be managed by this module.
Note that a) a lot inside Net::DBus is still blocking b) if you call a
method that blocks, you again block your process (basically anything but
calls to the Net::DBus::Binding::Connection objects block, but see
Net::DBus::Annoation, specifically dbus_call_async) c) the underlying
libdbus is often blocking itself, even with infinite timeouts and d)
this module only implements the minimum API required to make Net::DBus
( run in 0.821 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )