aio_open


Description:


[ Version ( since = "1.2" ) ]
public Future aio_open (AioContext? aio_context, string path, int flags, int mode)

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 [method@Dex.Future.await_fd].

Parameters:

path

the path to open

flags

flags for `open()`

mode

permissions to use when creating the file

Returns:

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


Namespace: Dex
Package: libdex-1