Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Points to pay attention to when using async #3

Open
Jzow opened this issue May 15, 2022 · 0 comments
Open

Points to pay attention to when using async #3

Jzow opened this issue May 15, 2022 · 0 comments
Labels
question Further information is requested

Comments

@Jzow
Copy link
Member

Jzow commented May 15, 2022

When using method calls in Dao layer and service layer, each method header should be marked async, and the called method await should be added

for example:

async fn b() {
   assert_eq!(1+1, 2).await;
}

async fn c() {
    b().await;
}
@Jzow Jzow added the question Further information is requested label May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant