Net::DB...dingCall(3)
πΈ NAME πΈ
okay so bestie, you're reading Net::DBus::Binding::PendingCall(3) from the User Contributed Perl Documentation β manual name folded in like a lil name tag π β and it is literally a handler for pending method replies π.
β¨ SYNOPSIS β¨
the whole vibe is: make the call, wait for it, grab the reply π
my $call = Net::DBus::Binding::PendingCall->new(method_call => $call,
pending_call => $reply);
# Wait for completion
$call->block;
# And get the reply message
my $msg = $call->get_reply;
π¦ DESCRIPTION π¦
This object is used when it is necessary to make asynchronous method calls β¨. It provides the means to be notified when the reply is finally received. no cap, that's the whole point π«Ά.
π METHODS π
new β constructor
my $call = Net::DBus::Binding::PendingCall->new(method_call =>
$method_call, pending_call => $pending_call);
Creates a new pending call object π. The method_call parameter is a reference to the Net::DBus::Binding::Message::MethodCall object whose reply is being waited for. The pending_call parameter is a reference to the raw C pending call object π§.
$call->cancelβ Cancel the pending call, causing any reply that is later received to be discarded. bye-bye reply ππ.my $boolean = $call->get_completedβ Returns a true value if the pending call has received its reply, or a timeout has occurred. so you can check the vibe β .$call->blockβ Block the caller until the reply is received or a timeout occurs. yes bestie, it will sit there and wait π« .my $msg = $call->get_reply;β Retrieves theNet::DBus::Binding::Messageobject associated with the complete call. that's the message, bestie π¨.$call->set_notify($coderef);β Sets a notification function to be invoked when the pending call completes. The callback will be passed a single argument which is this pending call object π.
π AUTHOR π
Daniel P. Berrange. periodt π .
π COPYRIGHT π
Copyright (C) 2006-2011 Daniel P. Berrange. keep the receipts π§Ύ.
π SEE ALSO π
Net::DBus::Binding::ConnectionNet::DBus::Binding::MessageNet::DBus::ASyncReply
these are the linked besties π.
okay bye bestie π«Ά β this page is from perl v5.42.0, dated 2019-12-17, and the manual footer goes by Net::DB...dingCall(3) (yes, the truncated title is iconic). 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