john.spurlock
02/15/2023, 5:06 PMckoeninger
02/15/2023, 5:07 PMckoeninger
02/15/2023, 5:10 PMjohn.spurlock
02/15/2023, 5:10 PMzehawk
02/15/2023, 7:30 PMLarry
02/15/2023, 7:42 PMsilentdevnull
02/15/2023, 8:56 PMckoeninger
02/15/2023, 8:57 PMLarry
02/15/2023, 9:09 PMasync hydrate() {
if (this.hydrated) return
this.value = await this.state.storage.get('value')
this.hydrated = true
}
If I call that at the beginning of my fetch handler with: await hydrate()
Does that potentially let another request get started in the case when this.hydrated is true?kenton
02/15/2023, 11:57 PMhydrate()
itself only waits on storage operations, awaiting hydrate()
will not open the input gate.Larry
02/16/2023, 2:29 AMGuillaumeLakano
02/16/2023, 7:21 AMHardAtWork
02/16/2023, 10:13 AMGuillaumeLakano
02/16/2023, 10:22 AMGuillaumeLakano
02/16/2023, 1:45 PMckoeninger
02/16/2023, 2:22 PMckoeninger
02/16/2023, 2:22 PMckoeninger
02/16/2023, 2:23 PMHardAtWork
02/16/2023, 2:23 PMckoeninger
02/16/2023, 2:24 PMckoeninger
02/16/2023, 2:24 PMckoeninger
02/16/2023, 2:24 PMHardAtWork
02/16/2023, 2:25 PMfetch
right? So would it be possible to do said lookup, without the accompanying fetch that actually creates the object if it doesn’t exist?HardAtWork
02/16/2023, 2:25 PMckoeninger
02/16/2023, 2:25 PMckoeninger
02/16/2023, 2:26 PMHardAtWork
02/16/2023, 2:27 PMHardAtWork
02/16/2023, 2:27 PMGuillaumeLakano
02/16/2023, 2:28 PMckoeninger
02/16/2023, 2:28 PM