AsyncFile.open

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

Open a file asynchronously.

Parameters

loopEvent loop to register with.
pathPath to the file to open.
flagsPOSIX-like open flags (O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_TRUNC, O_APPEND).

Returns

OpenResult.OK on success, or an error variant.