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
This issue is related to later >= 1.0.0 which introduces private event loops.
The first observation is that httpuv uses only the global event loop even if startServer() is called inside later::with_temp_loop().
The problem is that service() does not execute the callbacks registered in the global loop when called inside later::with_temp_loop().
This comes from the fact that later::run_now() executes the callbacks registered in the current loop.
Originally posted in rstudio/pagedown#150
This issue is related to later >= 1.0.0 which introduces private event loops.
The first observation is that httpuv uses only the global event loop even if
startServer()
is called insidelater::with_temp_loop()
.The problem is that
service()
does not execute the callbacks registered in the global loop when called insidelater::with_temp_loop()
.This comes from the fact that
later::run_now()
executes the callbacks registered in the current loop.httpuv/R/httpuv.R
Lines 588 to 615 in 57e1d71
For now, the workaround is to use
later::with_loop(later::global_loop(), httpuv::service())
instead ofhttpuv::service()
.The text was updated successfully, but these errors were encountered: