Is it easy to create non-blocking TLS socket connections with Julia? How about making an HTTPS request? If Julia has async operations, are they inline, promises, events or callbacks?
# Set up stream `sock` here
@async begin
println(sock,"Hello World")
line = readline(sock)
println(sock,"You typed ",line)
end
Basically the encryption happens on the fly and the stream can be used just like any other socket. For example, in the http client code here: https://github.com/loladiro/Requests.jl/blob/master/src/Requ..., the only difference between HTTP and HTTPS is how the socket is set up, the actual reading and writing is the same. Hope that helps!