Function

Dex-1Dexaio_openSince 1.2

  • An asynchronous open() wrapper.

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

    The resulting future resolves to a file descriptor which can be consumed with Dex.Future.await_fd.

    Parameters

    • aio_context: AioContext
    • path: string

      the path to open

    • flags: number

      flags for open()

    • mode: number

      permissions to use when creating the file

    Returns Dex.Future

    a future that will resolve when the open completes or rejects with error.

    1.2