Created
July 21, 2019 19:14
-
-
Save nimrossum/39077d877bc38a3ba62fb98a0728d07b 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
async function* events() { | |
window.addEventListener("mouse move", e => { | |
yield ([e.pageX, e.pageY]) | |
}) | |
} | |
for await(events of events) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment