rename channels to channels_builtin (#17330)

* improve test coverage for isolation

* a bit better

* rename channels to channels_builtin
This commit is contained in:
flywind
2021-03-12 20:04:32 +08:00
committed by GitHub
parent d97bf4f1c8
commit 2e730f1452
7 changed files with 6 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ Automatic imports
Basic Nim thread support. **Note:** This is part of the system module. Do not
import it explicitly. Enabled with ``--threads:on``.
* `channels <channels.html>`_
* `channels <channels_builtin.html>`_
Nim message passing support for threads. **Note:** This is part of the
system module. Do not import it explicitly. Enabled with ``--threads:on``.

View File

@@ -7721,7 +7721,7 @@ Threads
To enable thread support the ``--threads:on`` command-line switch needs to
be used. The ``system`` module then contains several threading primitives.
See the `threads <threads.html>`_ and `channels <channels.html>`_ modules
See the `threads <threads.html>`_ and `channels <channels_builtin.html>`_ modules
for the low-level thread API. There are also high-level parallelism constructs
available. See `spawn <manual_experimental.html#parallel-amp-spawn>`_ for
further details.

View File

@@ -46,7 +46,7 @@ runnableExamples:
## See also
## ========
## * `lists module <lists.html>`_ for singly and doubly linked lists and rings
## * `channels module <channels.html>`_ for inter-thread communication
## * `channels module <channels_builtin.html>`_ for inter-thread communication
import std/private/since

View File

@@ -14,7 +14,7 @@
## See also
## ========
## * `threads module <threads.html>`_ for basic thread support
## * `channels module <channels.html>`_ for message passing support
## * `channels module <channels_builtin.html>`_ for message passing support
## * `locks module <locks.html>`_ for locks and condition variables
## * `asyncdispatch module <asyncdispatch.html>`_ for asynchronous IO

View File

@@ -2385,7 +2385,7 @@ when notJSnotNims and hasAlloc:
include "system/repr"
when notJSnotNims and hasThreadSupport and hostOS != "standalone":
include "system/channels"
include "system/channels_builtin"
when notJSnotNims and hostOS != "standalone":

View File

@@ -126,7 +126,7 @@ gc.rst
doc0 = """
lib/system/threads.nim
lib/system/channels.nim
lib/system/channels_builtin.nim
""".splitWhitespace() # ran by `nim doc0` instead of `nim doc`
withoutIndex = """