Open gudaoxuri opened 1 year ago
Hi,
I want to call rust's asynchronous processing logic in js (such as hyper_wasi project's asynchronous httpclient), how should I handle it?
hyper_wasi
struct HttpGetFn; impl JsFn for HttpGetFn { fn call(ctx: &mut Context, _this_val: JsValue, argv: &[JsValue]) -> JsValue { // How to support asynchronous processing? like: // let resp = http_req(...).await; } }
Hi,
I want to call rust's asynchronous processing logic in js (such as
hyper_wasi
project's asynchronous httpclient), how should I handle it?