1Net::DBus::Binding::PenUdsienrgCCaolnlt(r3i)buted Perl DNoectu:m:eDnBtuast:i:oBninding::PendingCall(3)
2
3
4

NAME

6       Net::DBus::Binding::PendingCall - A handler for pending method replies
7

SYNOPSIS

9         my $call = Net::DBus::Binding::PendingCall->new(method_call => $call,
10                                                         pending_call => $reply);
11
12         # Wait for completion
13         $call->block;
14
15         # And get the reply message
16         my $msg = $call->get_reply;
17

DESCRIPTION

19       This object is used when it is necessary to make asynchronous method
20       calls. It provides the means to be notified when the reply is finally
21       received.
22

METHODS

24       my $call = Net::DBus::Binding::PendingCall->new(method_call =>
25       $method_call, pending_call => $pending_call);
26           Creates a new pending call object, with the "method_call" parameter
27           being a reference to the "Net::DBus::Binding::Message::MethodCall"
28           object whose reply is being waiting for. The "pending_call"
29           parameter is a reference to the raw C pending call object.
30
31       $call->cancel
32           Cancel the pending call, causing any reply that is later received
33           to be discarded.
34
35       my $boolean = $call->get_completed
36           Returns a true value if the pending call has received its reply, or
37           a timeout has occurred.
38
39       $call->block
40           Block the caller until the reply is received or a timeout occurrs.
41
42       my $msg = $call->get_reply;
43           Retrieves the "Net::DBus::Binding::Message" object associated with
44           the complete call.
45
46       $call->set_notify($coderef);
47           Sets a notification function to be invoked when the pending call
48           completes. The callback will be passed a single argument which is
49           this pending call object.
50

AUTHOR

52       Daniel P. Berrange
53
55       Copyright (C) 2006-2011 Daniel P. Berrange
56

SEE ALSO

58       Net::DBus::Binding::Connection, Net::DBus::Binding::Message,
59       Net::DBus::ASyncReply
60
61
62
63perl v5.36.0                      2022-07-22Net::DBus::Binding::PendingCall(3)
Impressum