Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am malcolmstill on github.
  • I am sopost_malcolm (https://keybase.io/sopost_malcolm) on keybase.
  • I have a public key ASA8WSUQ849gQCAvZJgd57_6aIa5eq88WBuOQ7xrNTwdeQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am malcolmstill on github.
  • I am malcolmstill (https://keybase.io/malcolmstill) on keybase.
  • I have a public key ASA3HCqtpyuXfcvISZkF4ahC_HLtXvqhmdYX3ZZmFWZ7iQo

To claim this, I am signing this object:

@malcolmstill
malcolmstill / 1-easy.js
Created April 8, 2021 03:02 — forked from nybblr/1-easy.js
3 examples of using Async Generators and Async Iteration in JavaScript!
// Create a Promise that resolves after ms time
var timer = function(ms) {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
};
// Repeatedly generate a number starting
// from 0 after a random amount of time
var source = async function*() {