Fetch an :class:`Application` associated with ``name`` if available.

    This function may return an :ref:`asynchronous component <coroutine>`.
    The application name is set during initialisation. Check the
    :attr:`Configurator.name` attribute for more information.

def get_application(name):
    """Fetch an :class:`Application` associated with ``name`` if available.

    This function may return an :ref:`asynchronous component <coroutine>`.
    The application name is set during initialisation. Check the
    :attr:`Configurator.name` attribute for more information.
    """
    actor = get_actor()

    if actor:
        if actor.is_arbiter():
            return _get_app(actor, name, False)
        else:
            return _get_remote_app(actor, name)