#NEWLINE# def await_transaction( self , function , queue_name = None ) : #NEWLINE# #INDENT# ' Like ``transaction()`` but runs the operation in a ``TaskQueue`` and returns a ``Future`` that\n    may be used to retrieve the result. Must be called from a Tornado ``IOLoop``. ``queue_name`` may\n    be specified to override the default.\n    ' #NEWLINE# if ( not queue_name ) : #NEWLINE# #INDENT# queue_name = self . _default_queue #NEWLINE# #UNINDENT# return TaskQueue . instance ( queue_name ) . yield_task ( function . transaction , function )