aio_close


Description:


[ Version ( since = "1.2" ) ]
public Future aio_close (AioContext? aio_context, int fd)

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:

fd

the file descriptor to close

Returns:

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


Namespace: Dex
Package: libdex-1