Ceru ©
04/17/2021, 1:51 PMCeru ©
04/17/2021, 1:51 PMDeleted User
04/17/2021, 2:24 PMDeleted User
04/17/2021, 2:25 PMidFromName
john.spurlock
04/17/2021, 3:35 PMCeru ©
04/17/2021, 4:00 PMvans163
04/17/2021, 5:05 PMelixir
class Ring {
async fetch(request) {
if (!this.initializePromise) {
this.initializePromise = this.initialize().catch((err) => {
this.initializePromise = undefined;
throw err
});
}
await this.initializePromise;
this.do_tick();
...
}
do_tick() {
if (this.tickPending)
return;
this.tickPending = true;
setTimeout(tick, 1000);
}
async tick() {
setTimeout(tick, 1000);
}
}
Does this look sane? I want to have a 1 second tick inside my DO, if the DO shutsdown+spinsup, itl start ticking.vans163
04/17/2021, 6:11 PMvans163
04/17/2021, 6:11 PMvans163
04/17/2021, 6:15 PMvans163
04/17/2021, 6:15 PMvans163
04/17/2021, 6:15 PMGrygrFlzr
04/18/2021, 4:40 AMai
04/18/2021, 5:23 AMstorage.get
with an array of strings and it returns a map promise. Any missing values are omitted from the result map. (supports up to 128 keys at a time)GrygrFlzr
04/18/2021, 12:27 PMBienvenu
04/18/2021, 12:46 PMKevin W - Itty
04/18/2021, 2:42 PMKevin W - Itty
04/18/2021, 2:45 PMKevin W - Itty
04/18/2021, 2:46 PMvans163
04/18/2021, 3:02 PMvans163
04/18/2021, 3:02 PMeidam | SuperSaaS
04/18/2021, 3:03 PMvans163
04/18/2021, 3:04 PMvans163
04/18/2021, 3:05 PMvans163
04/18/2021, 3:05 PMjohn.spurlock
04/18/2021, 4:05 PMKevin W - Itty
04/18/2021, 4:10 PMKevin W - Itty
04/18/2021, 4:10 PMkenton
04/19/2021, 2:29 PMKevin W - Itty
04/19/2021, 2:31 PM