channel:针对ORC即将推出的Nim渠道实施

时间:2024-03-29 03:31:02
【文件属性】:

文件名称:channel:针对ORC即将推出的Nim渠道实施

文件大小:5KB

文件格式:ZIP

更新时间:2024-03-29 03:31:02

Nim

渠道 针对ORC即将推出的Nim渠道实施 积极的榜样 import channel import std/[httpclient, isolation, json] var ch = initChan [ JsonNode ](kind = Spsc ) proc download (client: HttpClient , url: string ) = let response = client. get (url) echo "content: " echo response.body[ 0 .. 20 ] proc worker = var client = newHttpClient () var data: JsonNode ch. recv (data) if data != nil : for url in data[ "url" ] :


【文件预览】:
channel-main
----todo_urls.txt(56B)
----README.md(857B)
----channel.nim(16KB)

网友评论