mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
Update threadpool.nim (#5624)
This commit is contained in:
committed by
Andreas Rumpf
parent
977758fe06
commit
27a291c09e
@@ -418,7 +418,7 @@ proc spawn*(call: expr): expr {.magic: "Spawn".}
|
||||
proc pinnedSpawn*(id: ThreadId; call: expr): expr {.magic: "Spawn".}
|
||||
## always spawns a new task on the worker thread with ``id``, so that
|
||||
## the 'call' is **always** executed on
|
||||
## the this thread. 'call' has to be proc call 'p(...)' where 'p'
|
||||
## the thread. 'call' has to be proc call 'p(...)' where 'p'
|
||||
## is gcsafe and has a return type that is either 'void' or compatible
|
||||
## with ``FlowVar[T]``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user