summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2023-05-14 16:58:28 +0200
committerGitHub <noreply@github.com>2023-05-14 16:58:28 +0200
commitf4a9b258c34a83efb74d9dea6853880e47f45b06 (patch)
tree3dc2c3fcf0e3fc3325a69614056bb7772675a6ab /lib
parent0ece98620f8d9d7b874262c75fa148970626d44d (diff)
downloadNim-f4a9b258c34a83efb74d9dea6853880e47f45b06.tar.gz
isolation spec update; WIP (#21843)
* isolation spec update; WIP

* wip

* docs update, WIP

* progress

* Update doc/manual.md
Diffstat (limited to 'lib')
-rw-r--r--lib/std/isolation.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/isolation.nim b/lib/std/isolation.nim
index 7d6ac6092..b03e00651 100644
--- a/lib/std/isolation.nim
+++ b/lib/std/isolation.nim
@@ -15,7 +15,7 @@
 ##
 
 type
-  Isolated*[T] = object ## Isolated data can only be moved, not copied.
+  Isolated*[T] {.sendable.} = object ## Isolated data can only be moved, not copied.
     value: T
 
 proc `=copy`*[T](dest: var Isolated[T]; src: Isolated[T]) {.error.}
@@ -38,9 +38,9 @@ func isolate*[T](value: sink T): Isolated[T] {.magic: "Isolate".} =
 
 func unsafeIsolate*[T](value: sink T): Isolated[T] =
   ## Creates an isolated subgraph from the expression `value`.
-  ## 
+  ##
   ## .. warning:: The proc doesn't check whether `value` is isolated.
-  ## 
+  ##
   Isolated[T](value: value)
 
 func extract*[T](src: var Isolated[T]): T =