Skip to content

Instantly share code, notes, and snippets.

@ishikawa
Created February 18, 2014 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishikawa/9073483 to your computer and use it in GitHub Desktop.
Save ishikawa/9073483 to your computer and use it in GitHub Desktop.
julia> @async begin
server = listen(2000)
while true
sock = accept(server)
println("Hello World\n")
end
end
Task (queued) @0x00007fe0d62ae100
julia> connect(2000)
TcpSocket(open, 0 bytes waiting)
julia> Hello World
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment