Net::DB...yncReply(3)
π Net::DBus::ASyncReply(3) β User Contributed Perl Documentation π
okay bestie, this is the User Contributed Perl Documentation page for Net::DBus::ASyncReply(3). The header line shows the truncated Net::DB...yncReply(3) version, so don't panic β same page, same icon, just a lil cropped π
πΈ NAME πΈ
Net::DBus::ASyncReply β asynchronous method reply handler. It's giving "your remote call went out and this object is holding the reply for you" energy π¦
β¨ SYNOPSIS β¨
use Net::DBus::Annotation qw(:call);
my $object = $service->get_object("/org/example/systemMonitor");
# List processes & get on with other work until
# the list is returned.
my $asyncreply = $object->list_processes(dbus_call_async, "someuser");
while (!$asyncreply->is_ready) {
... do some background work..
}
my $processes = $asyncreply->get_result;
π DESCRIPTION π
This object is your handler for receiving asynchronous method replies. You get an asynchronous reply object when you make a remote method call with the dbus_call_async annotation set. Literally the main character of "go do other stuff while the reply cooks" π
π METHODS π
$asyncreply->discard_result;
Indicates that the caller is no longer interested in receiving the reply & that it should be discarded. After calling this method, this object should not be used again.
π¨ bestie, after this one the object is done β do not use it again.
$asyncreply->wait_for_result;
Blocks you β the caller β while it waits for completion of the of the asynchronous reply. Once this method returns, the result can be obtained with the get_result method.
π yes, the double "of the" is in the original. We keep the lore.
my $boolean = $asyncreply->is_ready;
Returns a true value if the asynchronous reply is now complete (or a timeout has occurred). When this method returns true, the result can be obtained with the get_result method.
$asyncreply->set_notify($coderef);
Sets a notify function which will be invoked when the asynchronous reply finally completes. The callback will be invoked with a single parameter which is this object.
my @data = $asyncreply->get_result;
Retrieves the data associated with the asynchronous reply. If a timeout occurred, then this method will throw an exception. This method can only be called once the reply is complete, as indicated by the is_ready method returning a true value. After calling this method, this object should no longer be used.
π timeout? exception. not ready yet? can't call it. already called it? object's retired. rules are rules, bestie.
π AUTHOR π
Daniel Berrange <dan@berrange.com>
π COPYRIGHT π
Copright (C) 2006-2011, Daniel Berrange.
π§ SEE ALSO π§
Net::DBusNet::DBus::RemoteObjectNet::DBus::Annotation
okay that's the whole page! this absolute icon is from perl v5.42.0, dated 2019-12-17, and its manual page tag is Net::DB...yncReply(3). bye bestie, go make those async calls slay πβ¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: perl-Net-DBus 1.2.0-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: perl-Net-DBus 1.2.0-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: perl-Net-DBus 1.2.0-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: perl-Net-DBus 1.2.0-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms