Synchronous functions
I need to query a DB from a synchronous function. Unfortunately making it async isn't possible because it implements an interface that I can't touch. I also can't just ignore the promise because the said sync function actually processes the data returned from the query. Is there any solution?
2 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai
for a quick spin!Hmm, can you share your use case?
Is it possible to query db from outside this synchronous function and just pass the data in the function?