mishrajicoder
New Member
- Joined
- Oct 17, 2022
- Messages
- 6
- Thread Author
- #1
I was reading Programming in Scala 2nd Edition when I came across this:
So, because yield is a reserved term in Scala, if I use yield with backticks,
Would disregard the Scala yield and allow me to use the yield function of the Java Thread class instead?
Thank you!
I'm not sure why I'd want to utilize this. In this article, I've read provided an example of how to access the static yield function in Java's Thread class."The notion is that you may insert any string that the runtime accepts as an identifier between backticks."
So, because yield is a reserved term in Scala, if I use yield with backticks,
Code:
Thread.`yield`()
Thank you!