~/talk

Say goodbye to unnecessary waiting: mastering asynchronous programming in Shiny

Talkat ShinyConf 2023 · 2023-03-15..03-17
links:none on file
slides:none on file

Shows concrete wins: use future and promises to make Shiny non‑blocking across concurrent users (no cross‑session stalls), use callR r_bg to spawn background R processes so a single user can continue while heavy tasks run, and use coro async/await for more familiar async syntax. Demonstrates multisession/multicore strategies, r_bg polling to retrieve results, and real use cases (DB queries, CSV/PDF generation, ML training). Notes a measurable user‑impact tradeoff, some overhead, and a steep but essential learning curve.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Why speed matters
  3. 3:17Developer responsibility
  4. 5:51What is async programming
  5. 8:34How Shiny works synchronously
  6. 13:32Async vs Multi-threading
  7. 16:23Introduction to futures
  8. 20:26Future examples
  9. 23:56Promises in Shiny
  10. 29:04Observing with promises
  11. 33:48Using callr
  12. 39:11Callr examples
  13. 43:23Introduction to Coro
  14. 45:05Method comparison
  15. 48:37Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.