OpenStatus — success, or an OpenError payload with the reason
and the captured OS error code.
OpenStatus open(ref EventLoop loop, scope const(char)[] path, int flags) @trustedOpen a file asynchronously.
loop | Event loop to register with. |
path | Path to the file to open. |
flags | POSIX-like open flags (O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_TRUNC, O_APPEND). |
OpenStatus — success, or an OpenError payload with the reason
and the captured OS error code.