diff --git a/atomics.html b/atomics.html
index 5a8ea00..edd0efc 100644
--- a/atomics.html
+++ b/atomics.html
@@ -501,7 +501,7 @@
- Made with Nim. Generated: 2024-07-25 20:05:40 UTC
+ Made with Nim. Generated: 2024-08-12 19:16:06 UTC
diff --git a/barrier.html b/barrier.html
index bdb62ec..d77d944 100644
--- a/barrier.html
+++ b/barrier.html
@@ -219,7 +219,7 @@
- Made with Nim. Generated: 2024-07-25 20:05:30 UTC
+ Made with Nim. Generated: 2024-08-12 19:15:56 UTC
diff --git a/channels.html b/channels.html
index 15e3224..f304fdc 100644
--- a/channels.html
+++ b/channels.html
@@ -74,6 +74,10 @@ threading/channels
+
newChan
- newChan[T](elements: Positive = 30): Chan[T]
@@ -217,8 +221,8 @@
-
Typed channel
- Source
-Edit
+ Source
+Edit
@@ -234,8 +238,8 @@
-
Shares Channel by reference counting.
- Source
-Edit
+ Source
+Edit
@@ -247,8 +251,21 @@
-
- Source
-Edit
+ Source
+Edit
+
+
+
+
+
+
+
@@ -262,8 +279,8 @@
An initialization procedure, necessary for acquiring resources and initializing internal state of the channel.
elements is the capacity of the channel and thus how many messages it can hold before it refuses to accept any further messages.
-
Source
-
Edit
+
Source
+
Edit
@@ -271,12 +288,12 @@
-
func peek[T](c: Chan[T]): int {.inline.}
+
proc peek[T](c: Chan[T]): int {.inline.}
-
Returns an estimation of the current number of messages held by the channel.
- Source
-Edit
+ Source
+Edit
@@ -288,8 +305,8 @@
-
Receives a message from the channel. A version of recv that returns the message.
- Source
-Edit
+ Source
+Edit
@@ -301,8 +318,8 @@
This blocks the receiving thread until a message was successfully received.
If the channel does not contain any messages this will block the thread until a message get sent to the channel.
- Source
-Edit
+ Source
+Edit
@@ -314,8 +331,8 @@
-
Receives a message from the channel. A version of recv that returns the message and isolates it.
- Source
-Edit
+ Source
+Edit
@@ -330,8 +347,8 @@
The memory of src is moved, not copied.
If the channel is already full with messages this will block the thread until messages from the channel are removed.
- Source
-Edit
+ Source
+Edit
@@ -348,8 +365,8 @@
Blocking is still possible if another thread uses the blocking version of the send proc / recv proc and waits for the data/space to appear in the channel, thus holding the internal lock to channel's buffer.
Returns false and does not change dist if no message was received.
- Source
-Edit
+ Source
+Edit
@@ -366,8 +383,8 @@
Blocking is still possible if another thread uses the blocking version of the send proc / recv proc and waits for the data/space to appear in the channel, thus holding the internal lock to channel's buffer.
Returns false if the message was not sent because the number of pending messages in the channel exceeded its capacity.
- Source
-Edit
+ Source
+Edit
@@ -385,8 +402,8 @@
-
Helper template for send.
- Source
-Edit
+ Source
+Edit
@@ -398,8 +415,8 @@
-
Helper template for trySend.
- Source
-Edit
+ Source
+Edit
@@ -415,7 +432,7 @@
- Made with Nim. Generated: 2024-07-25 20:05:34 UTC
+ Made with Nim. Generated: 2024-08-12 19:16:00 UTC
diff --git a/channels.idx b/channels.idx
index 30486e8..18dfbb9 100644
--- a/channels.idx
+++ b/channels.idx
@@ -1,15 +1,16 @@
nimTitle channels channels.html module threading/channels 0
-nim Chan channels.html#Chan object Chan 266
-nim `=destroy` channels.html#=destroy,Chan[T] proc `=destroy`[T](c: Chan[T]) 278
-nim `=copy` channels.html#=copy,Chan[T],Chan[T] proc `=copy`[T](dest: var Chan[T]; src: Chan[T]) 284
-nim trySend channels.html#trySend,Chan[T],sinkIsolated[T] proc trySend[T](c: Chan[T]; src: sink Isolated[T]): bool 293
-nim trySend channels.html#trySend.t,Chan[T],T template trySend[T](c: Chan[T]; src: T): bool 312
-nim tryRecv channels.html#tryRecv,Chan[T],T proc tryRecv[T](c: Chan[T]; dst: var T): bool 316
-nim send channels.html#send,Chan[T],sinkIsolated[T] proc send[T](c: Chan[T]; src: sink Isolated[T]) 329
-nim send channels.html#send.t,Chan[T],T template send[T](c: Chan[T]; src: T) 343
-nim recv channels.html#recv,Chan[T],T proc recv[T](c: Chan[T]; dst: var T) 347
-nim recv channels.html#recv,Chan[T] proc recv[T](c: Chan[T]): T 356
-nim recvIso channels.html#recvIso,Chan[T] proc recvIso[T](c: Chan[T]): Isolated[T] 361
-nim peek channels.html#peek,Chan[T] proc peek[T](c: Chan[T]): int 368
-nim newChan channels.html#newChan,Positive proc newChan[T](elements: Positive = 30): Chan[T] 372
-nimgrp recv channels.html#recv-procs-all proc 347
+nim Chan channels.html#Chan object Chan 258
+nim `=destroy` channels.html#=destroy,Chan[T] proc `=destroy`[T](c: Chan[T]) 270
+nim `=dup` channels.html#=dup,Chan[T] proc `=dup`[T](src: Chan[T]): Chan[T] 276
+nim `=copy` channels.html#=copy,Chan[T],Chan[T] proc `=copy`[T](dest: var Chan[T]; src: Chan[T]) 281
+nim trySend channels.html#trySend,Chan[T],sinkIsolated[T] proc trySend[T](c: Chan[T]; src: sink Isolated[T]): bool 288
+nim trySend channels.html#trySend.t,Chan[T],T template trySend[T](c: Chan[T]; src: T): bool 307
+nim tryRecv channels.html#tryRecv,Chan[T],T proc tryRecv[T](c: Chan[T]; dst: var T): bool 311
+nim send channels.html#send,Chan[T],sinkIsolated[T] proc send[T](c: Chan[T]; src: sink Isolated[T]) 324
+nim send channels.html#send.t,Chan[T],T template send[T](c: Chan[T]; src: T) 338
+nim recv channels.html#recv,Chan[T],T proc recv[T](c: Chan[T]; dst: var T) 342
+nim recv channels.html#recv,Chan[T] proc recv[T](c: Chan[T]): T 351
+nim recvIso channels.html#recvIso,Chan[T] proc recvIso[T](c: Chan[T]): Isolated[T] 356
+nim peek channels.html#peek,Chan[T] proc peek[T](c: Chan[T]): int 363
+nim newChan channels.html#newChan,Positive proc newChan[T](elements: Positive = 30): Chan[T] 367
+nimgrp recv channels.html#recv-procs-all proc 342
diff --git a/dochack.js b/dochack.js
index 70a447a..898ec11 100644
--- a/dochack.js
+++ b/dochack.js
@@ -1238,7 +1238,7 @@ function then__dochack_u1099(future_p0, onSuccess_p1, onReject_p2) {
BeforeRet: {
var ret_536872027 = null;
- ret_536872027 = future_p0.then(onSuccess_p1, onReject_p2)
+ ret_536872027 = future_p0.then(onSuccess_p1, onReject_p2);
result_536872017 = ret_536872027;
break BeforeRet;
};
diff --git a/index.html b/index.html
index a975f8b..7d62858 100644
--- a/index.html
+++ b/index.html
@@ -78,6 +78,8 @@ Index
`=dup`:
- channels: proc `=dup`[T](src: Chan[T]): Chan[T]
+ - smartptrs: proc `=dup`[T](src: SharedPtr[T]): SharedPtr[T]
- smartptrs: proc `=dup`[T](src: UniquePtr[T]): UniquePtr[T]
@@ -364,7 +366,7 @@ Index
- Made with Nim. Generated: 2024-07-25 20:05:41 UTC
+ Made with Nim. Generated: 2024-08-12 19:16:07 UTC
diff --git a/once.html b/once.html
index abfafd7..c405cbd 100644
--- a/once.html
+++ b/once.html
@@ -245,7 +245,7 @@
- Made with Nim. Generated: 2024-07-25 20:05:35 UTC
+ Made with Nim. Generated: 2024-08-12 19:16:01 UTC
diff --git a/rwlock.html b/rwlock.html
index f36059c..b1c5219 100644
--- a/rwlock.html
+++ b/rwlock.html
@@ -315,7 +315,7 @@
- Made with Nim. Generated: 2024-07-25 20:05:38 UTC
+ Made with Nim. Generated: 2024-08-12 19:16:04 UTC
diff --git a/semaphore.html b/semaphore.html
index bf598f4..fd3e4a8 100644
--- a/semaphore.html
+++ b/semaphore.html
@@ -232,7 +232,7 @@
- Made with Nim. Generated: 2024-07-25 20:05:39 UTC
+ Made with Nim. Generated: 2024-08-12 19:16:05 UTC
diff --git a/smartptrs.html b/smartptrs.html
index acce583..71ab9ba 100644
--- a/smartptrs.html
+++ b/smartptrs.html
@@ -545,7 +545,7 @@
- Made with Nim. Generated: 2024-07-25 20:05:40 UTC
+ Made with Nim. Generated: 2024-08-12 19:16:06 UTC
diff --git a/theindex.html b/theindex.html
index a975f8b..7d62858 100644
--- a/theindex.html
+++ b/theindex.html
@@ -78,6 +78,8 @@ Index
`=dup`: