Hacker News new | ask | show | jobs
by eMSF 1547 days ago
GP's snippet was in Rust (not that I know if it's valid Rust code).

However, in C++ std::thread is a class and it does not have a static member function sleep_until. (However, std::this_thread, which is a namespace, does have such a function).

1 comments

D'oh! Thanks for the correction! Rust using std:: for its standard library does make some code snippets ambiguous!
Yeah, I agree. :-)