Quick actions

cmd+k|ctrl+k

Navigation

Languages

Untitled

Snippet info

Language

Nim

Visibility

unlisted

Author

legacy-anonymous

Created

2018-01-09T13:08:08Z

Updated

2018-01-09T13:08:08Z

import os, threadpool

var chan: Channel[string]
open(chan)

proc hello() =
    chan.send("Hello")


spawn hello()

echo chan.recv()
INFO