jazz
jazz copied to clipboard
expose client_request future in lua
Currently we are waiting by default for the response
local response = client_request.send("google.com")
exposing futures would look like this
local future = client_request.send("google.com")
-- we can do anything we want after sending the request
-- even send it and forget it
-- and then we can get the response
local response = future.wait()