Async process blocking R Shiny app

前端 未结 2 1894
轻奢々
轻奢々 2020-12-15 23:41

It should be possible to use the R packages future and promises to trigger asynchronous (long running) processing via Shiny apps without freezing t

2条回答
  •  自闭症患者
    2020-12-16 00:37

    So this behavior is normal, see the response of the package developer at https://github.com/rstudio/promises/issues/23

    Summary:

    In shiny apps, one R process can be shared by multiple users. If one user submits a long running task, then all the other users sharing the same underlying R process are blocked. The goal of promises is to avoid this. So promises will prevent blocking between "user sessions" within one R process but not within a single "user session".

    The author of the package mentioned that this feature is not supported yet and that it may be added if enough people ask for it. If you are looking for this, please go the GitHub issue and like the original question - this is how interest for new features is measured.

    Thanks!

提交回复
热议问题