Added FileMode to comment on asyncfile openAsync (#8008)
This commit is contained in:
parent
df1784dabf
commit
657062145b
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ proc newAsyncFile*(fd: AsyncFd): AsyncFile =
|
||||||
|
|
||||||
proc openAsync*(filename: string, mode = fmRead): AsyncFile =
|
proc openAsync*(filename: string, mode = fmRead): AsyncFile =
|
||||||
## Opens a file specified by the path in ``filename`` using
|
## Opens a file specified by the path in ``filename`` using
|
||||||
## the specified ``mode`` asynchronously.
|
## the specified FileMode ``mode`` asynchronously.
|
||||||
when defined(windows) or defined(nimdoc):
|
when defined(windows) or defined(nimdoc):
|
||||||
let flags = FILE_FLAG_OVERLAPPED or FILE_ATTRIBUTE_NORMAL
|
let flags = FILE_FLAG_OVERLAPPED or FILE_ATTRIBUTE_NORMAL
|
||||||
let desiredAccess = getDesiredAccess(mode)
|
let desiredAccess = getDesiredAccess(mode)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue