Export AsyncFile. Add asyncfile module to docgen.
This commit is contained in:
parent
fcb44ae4f0
commit
d8c5c2f222
3 changed files with 6 additions and 2 deletions
|
|
@ -175,6 +175,9 @@ Generic Operating System Services
|
||||||
This module implements the ability to monitor a directory/file for changes
|
This module implements the ability to monitor a directory/file for changes
|
||||||
using Posix's inotify API.
|
using Posix's inotify API.
|
||||||
|
|
||||||
|
* `asyncfile <asyncfile.html>`_
|
||||||
|
This module implements asynchronous file reading and writing using
|
||||||
|
``asyncdispatch``.
|
||||||
|
|
||||||
Math libraries
|
Math libraries
|
||||||
--------------
|
--------------
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
## This module implements asynchronous file handling.
|
## This module implements asynchronous file reading and writing.
|
||||||
##
|
##
|
||||||
## .. code-block:: Nim
|
## .. code-block:: Nim
|
||||||
## import asyncfile, asyncdispatch, os
|
## import asyncfile, asyncdispatch, os
|
||||||
|
|
@ -30,7 +30,7 @@ else:
|
||||||
import posix
|
import posix
|
||||||
|
|
||||||
type
|
type
|
||||||
AsyncFile = ref object
|
AsyncFile* = ref object
|
||||||
fd: TAsyncFd
|
fd: TAsyncFd
|
||||||
offset: int64
|
offset: int64
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ srcdoc2: "pure/nimprof;pure/unittest;packages/docutils/highlite"
|
||||||
srcdoc2: "packages/docutils/rst;packages/docutils/rstast"
|
srcdoc2: "packages/docutils/rst;packages/docutils/rstast"
|
||||||
srcdoc2: "packages/docutils/rstgen;pure/logging;pure/asyncdispatch;pure/asyncnet"
|
srcdoc2: "packages/docutils/rstgen;pure/logging;pure/asyncdispatch;pure/asyncnet"
|
||||||
srcdoc2: "pure/rawsockets;pure/asynchttpserver;pure/net;pure/selectors;pure/future"
|
srcdoc2: "pure/rawsockets;pure/asynchttpserver;pure/net;pure/selectors;pure/future"
|
||||||
|
srcdoc2: "pure/asyncfile"
|
||||||
srcdoc2: "pure/md5"
|
srcdoc2: "pure/md5"
|
||||||
srcdoc2: "posix/posix"
|
srcdoc2: "posix/posix"
|
||||||
srcdoc2: "pure/fenv"
|
srcdoc2: "pure/fenv"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue