Add js-like future object which might be used to wait for the response to be received or return the error otherwise.