-
For example, realize a benchmark tool with actix-web client. let h = tokio::task::spawn(async move { Maybe,ClientResponse not implemented //---------------------------------------------------------------------------------- const threadNum : usize = 8; #[actix_web::main]
} async fn test127(threadNo : usize) -> usize {
//if remove following code, success to compile, but it is useless |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Sorry, I am a newbie in Rust, only one month :(. Maybe it is a stupid question. |
Beta Was this translation helpful? Give feedback.
-
No worry. It's a common question around here. |
Beta Was this translation helpful? Give feedback.
-
I wrote a example, there are some problems to ask for advice.
|
Beta Was this translation helpful? Give feedback.
-
There are some simple rules with the client:
|
Beta Was this translation helpful? Give feedback.
-
Like robjtede pointed out. You don't build anything you want to reuse with every request. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your advice. It is ok now!
|
Beta Was this translation helpful? Give feedback.
There are some simple rules with the client: