tokio/pytest_plugin.py
def create_future(loop, loop_type):
    """Return an instance of Future."""
    def _create_future():
        if loop_type == 'current':
            return loop.create_future()
        elif loop_type == 'asyncio':
            return asyncio.Future(loop=loop)

    yield _create_future
Return an instance of Future.
Return an instance of Future.
Return an instance of Future .
def create_future(loop, loop_type):
    def _create_future():
        if loop_type == 'current':
            return loop.create_future()
        elif loop_type == 'asyncio':
            return asyncio.Future(loop=loop)
    yield _create_future
def create_future ( loop , loop_type ) : def _create_future ( ) : if loop_type == 'current' : return loop . create_future ( ) elif loop_type == 'asyncio' : return asyncio . Future ( loop = loop ) yield _create_future
Return an instance of Future.
Return an instance of Future .
"""Return an instance of Future."""
loop
loop_type