Skip to content

Instantly share code, notes, and snippets.

@thepassle
Created November 24, 2020 09:49
Show Gist options
  • Save thepassle/2dc78be5bf351ac83efe778255187f7a to your computer and use it in GitHub Desktop.
Save thepassle/2dc78be5bf351ac83efe778255187f7a to your computer and use it in GitHub Desktop.
class Batching {
// ...
async scheduleUpdate() {
if(!this.updateRequested) {
this.updateRequested = true;
this.updateRequested = await false;
this.update();
}
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment