ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-DBus/DBus.pm
(Generate patch)

Comparing AnyEvent-DBus/DBus.pm (file contents):
Revision 1.7 by root, Mon Jun 21 19:59:28 2010 UTC vs.
Revision 1.9 by root, Sun Aug 14 13:22:52 2022 UTC

38Net::DBus unfortunately has no nice hooking API. 38Net::DBus unfortunately has no nice hooking API.
39 39
40However, unlike L<Net::DBus::Reactor>, this module should be fully 40However, unlike L<Net::DBus::Reactor>, this module should be fully
41non-blocking as long as you only use non-blocking APIs (Net::DBus::Reactor 41non-blocking as long as you only use non-blocking APIs (Net::DBus::Reactor
42blocks on writes). It should also be faster, but Net::DBus is such a 42blocks on writes). It should also be faster, but Net::DBus is such a
43morass so unneeded method calls that speed won't matter much... 43morass of unneeded method calls that speed won't matter much...
44 44
45=head2 EXAMPLE 45=head2 EXAMPLE
46 46
47Here is a simple example. Both work with AnyEvent::DBus and do the same 47Here is a simple example. Both work with AnyEvent::DBus and do the same
48thing, but only the second is actually non-blocking. 48thing, but only the second is actually non-blocking.
90 90
91use AnyEvent (); 91use AnyEvent ();
92use Net::DBus (); 92use Net::DBus ();
93use Net::DBus::Binding::Watch (); 93use Net::DBus::Binding::Watch ();
94 94
95our $VERSION = '0.3'; 95our $VERSION = '0.31';
96 96
97# yup, Net::DBus checks by using exists on %INC... 97# yup, Net::DBus checks by using exists on %INC...
98$INC{'Net/DBus/Reactor.pm'} = undef; 98$INC{'Net/DBus/Reactor.pm'} = undef;
99 99
100# claim we are the main reactor mainloop 100# claim we are the main reactor mainloop

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines