claim_with_async
Description:
Called by an approver to claim channels for handling internally.
If this method is called successfully, the process calling this method becomes the handler for the channel.
If successful, this method will cause the invalidated signal to be emitted, in the same way as for handle_with_async.
This method may fail because the dispatch operation has already been completed. Again, see handle_with_async for more details. The approver MUST NOT attempt to interact with the channels further in this case.
This is an improved version of claim_async
as it tells client
about the new channels being handled.
TP_CHANNEL_DISPATCH_OPERATION_FEATURE_CORE
feature must be prepared before calling this function.
Parameters:
this | |
client |
the BaseClient claiming this |
callback |
a callback to call when the call returns |
user_data |
data to pass to |