Last active
February 18, 2022 06:29
-
-
Save RoyalIcing/38fb200b9f32087e1d222b638b5957b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function* TrafficLights() { | |
function* Green() { | |
yield on("timer", Yellow); | |
} | |
function* Yellow() { | |
yield on("timer", Red); | |
} | |
function* Red() { | |
yield on("timer", Green); | |
} | |
return Red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment