Function

Dex-1Dexaio_closeSince 1.2

  • An asynchronous close() wrapper.

    This function takes ownership of fd and will close it asynchronously.

    Generally you want to provide NULL for the aio_context as that will get the default aio context for your scheduler.

    Parameters

    • aio_context: AioContext
    • fd: number

      the file descriptor to close

    Returns Dex.Future

    a future that will resolve to true when the close completes or rejects with error.

    1.2