AsyncFile.open

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

Open a file for reading and/or writing.

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.