summary refs log tree commit diff stats
path: root/lib/std/isolation.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/isolation.nim')
-rw-r--r--lib/std/isolation.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/isolation.nim b/lib/std/isolation.nim
index 8daca233b..b03e00651 100644
--- a/lib/std/isolation.nim
+++ b/lib/std/isolation.nim
@@ -15,10 +15,10 @@
 ##
 
 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 `=`*[T](dest: var Isolated[T]; src: Isolated[T]) {.error.}
+proc `=copy`*[T](dest: var Isolated[T]; src: Isolated[T]) {.error.}
 
 proc `=sink`*[T](dest: var Isolated[T]; src: Isolated[T]) {.inline.} =
   # delegate to value's sink operation
@@ -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 =