claim_async


Description:

[ Version ( deprecated = true , since = "0.11.5" ) ]
public async bool claim_async () throws Error

Warning: claim_async is deprecated.

Called by an approver to claim channels for handling internally.

Note:

since 0.15.0.

Use claim_with_async

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.

Parameters:

this

a ChannelDispatchOperation

callback

a callback to call when the call returns

user_data

data to pass to callback