src/anyio/_core/_resources.py
async def aclose_forcefully(resource: AsyncResource) -> None:
    """
    Close an asynchronous resource in a cancelled scope.

    Doing this closes the resource without waiting on anything.

    :param resource: the resource to close

    """
    with CancelScope() as scope:
        scope.cancel()
        await resource.aclose()

    Close an asynchronous resource in a cancelled scope.

    Doing this closes the resource without waiting on anything.

    :param resource: the resource to close

    
Close an asynchronous resource in a cancelled scope.
Doing this closes the resource without waiting on anything.
Close an asynchronous resource in a cancelled scope . Doing this closes the resource without waiting on anything .
async def aclose_forcefully(resource: AsyncResource) -> None:
    with CancelScope() as scope:
        scope.cancel()
        await resource.aclose()
async def aclose_forcefully ( resource : AsyncResource ) -> None : with CancelScope ( ) as scope : scope . cancel ( ) await resource . aclose ( )
Close an asynchronous resource in a cancelled scope.
Close an asynchronous resource in a cancelled scope .
"""
    Close an asynchronous resource in a cancelled scope.

    Doing this closes the resource without waiting on anything.

    :param resource: the resource to close

    """
resource
AsyncResource
the resource to close
the resource to close