Relative Content

Tag Archive for asynchronousshinytestthat

Testing async ExtendedTask with shinytest2

I am trying to migrate some slow running functions to use the new ExtentedTask feature but cannot find a way to make {shinytest2} wait for the results of the functions to be available. I’ve tried adding Sys.sleep(8) (longer than the slow function) prior to running app$get_value(export = "async") but the result is still NULL and also using app$wait_for_value(export = "async") but it timeouts even though timeout is set to 10 seconds. MRE below.