test_julia_scripts/13_Networking.jl

18 lines
200 B
Julia
Raw Permalink Normal View History

conn = connect(1234) # Defaults lo localhost
2020-05-07 17:05:12 +00:00
write(conn, "Hello world!\n")
println(conn, "hello again")
function foo()
for i in 5:8
produce(i)
end
end
t = Task(foo)
consume(t)