AsyncFile.open

OpenStatus open(ref EventLoop loop, scope const(char)[] path, int flags) @trusted

Open a file for reading and/or writing.

On success, EVE owns the fd. Must eventually call close() or dispose(). On failure, no cleanup required.

Parameters

loopEvent loop to register completion watcher with.
pathPath to the file to open.
flagsPOSIX open flags (O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, etc.)

Returns

OpenStatus — success, or an OpenError payload with the reason

and the captured OS error code.