test_julia_scripts/13_Networking.jl

18 lines
200 B
Julia
Executable File

conn = connect(1234) # Defaults lo localhost
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)