Registers cleanup code to be executed immediately if the future-producing code passed to complete throws an exception, or otherwise asynchronously, when the future returned by the code passed to complete itself completes.
Registers cleanup code to be executed immediately if the future-producing code passed to complete throws an exception, or otherwise asynchronously, when the future returned by the code passed to complete itself completes.
See the main documentation for trait CompleteLastly for more detail.
Value parameters
lastlyBlock
cleanup code to execute whether the code passed to complete throws an exception or succesfully returns a futuristic value.