Non blocking code example from shiny documentation and posit connect deployment

I am figuring out the non blocking code using ExtendedTask. I used the example in the documentation as is.

When I deploy to the POSIT connect, I am getting the following error. What is the way forward?

Warning: Error in exec_future: INTERNAL ERROR: The future::multisession() must never be called directly

Hi @arjunss79, the code example on that page should work on Connect and I'm able to deploy it without issue. The error message you're seeing suggests that your code is calling future::multisession() directly (as opposed to future::plan(multisession)). Is it possible that's the case?