hypebright / async_shiny

Examples to implement asynchronous programming in Shiny ✨
MIT License
63 stars 8 forks source link

docs: more intuitive use of callr given a fast and slow task #12

Closed laresbernardo closed 7 months ago

hypebright commented 7 months ago

Hi @laresbernardo, thanks for contributing!

Can you tell me why you want to add a fast task? Is it to demonstrate the fact that the session does not freeze and remains free?

If that's the case, we can also add a clock, similar to the more extensive example here - keeps the examples consistent :)

hypebright commented 7 months ago

I might change the folder structure - I must admit these more extensive (and perhaps better) examples are a bit hidden

laresbernardo commented 7 months ago

Can you tell me why you want to add a fast task? Is it to demonstrate the fact that the session does not freeze and remains free?

Exactly. You can click on that button as many times as you want and will work as expected while waiting for the long task. And the order doesn't matter.

If that's the case, we can also add a clock (...)

Sure, submitting a quick new commit.

hypebright commented 7 months ago

Thanks @laresbernardo!