You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure how to title this, not even sure is it's a nim issue, async issue or redis lib issue, but the behaviour is that just by adding await redisClient.subscribe("whatever") you can make your code raise runtime exception.
import redis, asyncdispatch
proc asyncTest1() {.async.} =# A, B ... Error: unhandled exception: No handles or timers registered in dispatcher. [ValueError]
echo "A"let redisClient = await openAsync()
await redisClient.subscribe("command")
echo "B"
await redisClient.quit()
echo "C"# never reachedproc asyncTest2() {.async.} =# runs OK: prints A B C
echo "A"let redisClient = await openAsync()
echo "B"
await redisClient.quit()
echo "C"
waitFor asyncTest1()
The text was updated successfully, but these errors were encountered:
Not sure how to title this, not even sure is it's a nim issue, async issue or redis lib issue, but the behaviour is that just by adding
await redisClient.subscribe("whatever")
you can make your code raise runtime exception.The text was updated successfully, but these errors were encountered: