A

Admin • 828.03K Points
Coach

Q. What is the purpose of `.await` in Rust?

  • (A) Pauses the program forever
  • (B) Terminates a future
  • (C) Waits for an async operation to complete
  • (D) Starts a new thread
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`.await` waits for an async operation to resolve.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.