async idGenerator #195
ryanleecode
started this conversation in
Ideas
Replies: 2 comments
-
The reason an id generator cannot be async right now is because it is used when setting new entries within an atomic operation, where the actual set/add calls are non-async. I do however have a theoretical solution to this that I am planning to look into. The exact same restriction applies to serialize/compress functions, which is a blocker for some serialization and compression methods I would like to support. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Feel free to open an issue on this btw |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any drawbacks to making the
idGenerator
async? For example I might want to use the web crypto api and do a sha256 hash to generate the id but that function is async.crypto.subtle.digest('SHA-256', ...)
Beta Was this translation helpful? Give feedback.
All reactions