@staticmethod<EOL><INDENT>def _nested_future(r, future):<DEDENT>
def cb():<EOL><INDENT>future.set(r.result)<EOL><DEDENT>return cb<EOL>
A utility function to map one future result into
another future via callback.
:param r:
:param future:
:return: