How do I increase the frequency a PostHandler executes on the default loop? #571
Unanswered
mylowillem
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
In the following test code the code inside the PostHandler executes every few seconds, I would like to execute it every 250ms, it's not important that the timing is accurate, it just needs to in that ballpark. I know I can add a timer using libuv or maybe even uSockets, but it seems wateful. My real world use case is using libpq for async database queries, that library requires that I dispatch a query to Postgres and then poll for the result. Most of my queries will complete within 250ms and I don't want to wait a few seconds for the results.
Beta Was this translation helpful? Give feedback.
All reactions