(going off of memory here)
self.process returns a Future, so you could do something simple like:
@tornado.web.asynchronous
@gen.coroutine
def get(self):
_data = self.get_argument('data', default='')
ioloop.add_future(self.process(_data), self.process_complete)
self.write("OK")
def process_complete(self, future):
"""Handle the error/success from the future"""
You should probably do a self.finish("OK")
since that will close the async.