remove deprecated modules (#10215)
* removed from `compiler`:
* lists (deprecated 2 years ago)
* removed from `lib` (all deprecated 3 years ago):
* ssl
* matchers
* httpserver
* removed from `lib/deprecated`:
* unsigned
* actors (and three accompanying tests)
* parseurl
* moved to `lib/deprecated`:
* securehash (the reason for not directly removing - it was deprecated (only) one year ago)
This commit is contained in:
parent
be9d1280ae
commit
5345c5b130
19 changed files with 5 additions and 1194 deletions
|
|
@ -1,13 +0,0 @@
|
|||
discard """
|
||||
outputsub: "150"
|
||||
"""
|
||||
|
||||
import actors
|
||||
|
||||
var
|
||||
pool: ActorPool[int, void]
|
||||
createActorPool(pool)
|
||||
for i in 0 ..< 300:
|
||||
pool.spawn(i, proc (x: int) {.thread.} = echo x)
|
||||
pool.join()
|
||||
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
discard """
|
||||
output: "1"
|
||||
"""
|
||||
|
||||
import actors
|
||||
|
||||
type
|
||||
some_type {.pure, final.} = object
|
||||
bla: int
|
||||
|
||||
proc thread_proc(input: some_type): some_type {.thread.} =
|
||||
result.bla = 1
|
||||
|
||||
proc main() =
|
||||
var actorPool: ActorPool[some_type, some_type]
|
||||
createActorPool(actorPool, 1)
|
||||
|
||||
var some_data: some_type
|
||||
|
||||
var inchannel = spawn(actorPool, some_data, thread_proc)
|
||||
var recv_data = ^inchannel
|
||||
close(inchannel[])
|
||||
echo recv_data.bla
|
||||
|
||||
main()
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
discard """
|
||||
disabled: yes
|
||||
outputsub: "0"
|
||||
"""
|
||||
|
||||
import actors
|
||||
|
||||
var
|
||||
a: TActorPool[int, void]
|
||||
createActorPool(a)
|
||||
|
||||
proc task(i: int) {.thread.} =
|
||||
echo i
|
||||
if i != 0: a.spawn (i-1, task)
|
||||
|
||||
# count from 9 till 0 and check 0 is somewhere in the output
|
||||
a.spawn(9, task)
|
||||
a.join()
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue