AsyncFile.open

OpenResult 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

OpenResult.OK on success, or an error variant.