jazz icon indicating copy to clipboard operation
jazz copied to clipboard

expose client_request future in lua

Open Arnaz87 opened this issue 5 years ago • 0 comments

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()

Arnaz87 avatar Oct 24 '18 04:10 Arnaz87