Fixed transfer_action to transfer ownership of the action arguments
Updated wait to use the standard futures