Open wch opened 5 years ago
In particular, this section of the documentation led me to believe that returning a promise in an observer wouldn't be blocking.
https://rstudio.github.io/promises/articles/shiny.html#observers
For anyone who comes across this issue: There are (unsafe) ways of getting around this, such as returning NULL
as the last statement in an observer. But, it would be great to have a safe means of doing this. You can indicate your support for such a request by upvoting this issue comment.
Here's an app that demonstrates the issue. If the observer's expression returns a promise, then Shiny blocks until that promise is resolved. If, on the other hand, it returns something else, then that promise will still run, but Shiny won't block waiting for it. This is something that both I and @aronatkins have run into, and it would be helpful if it were better documented in https://rstudio.github.io/promises/articles/shiny.html.