We have a Runnable switchLight object, as well as a handler. We want to execute switchLight after a one-second delay. Write a line of code to achieve this using the post* function:
Handlers
Execute after a while
Report a typo
Enter a short text
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.