S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which function is used to sleep a thread?

  • (A) thread::delay()
  • (B) thread::sleep()
  • (C) std::wait()
  • (D) pause()
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
thread::sleep() pauses the current thread.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.