Skip to content

shinyasync 0.4.0

Choose a tag to compare

@dawiegriesel dawiegriesel released this 21 Oct 09:23
· 27 commits to main since this release

shinyasync 0.4.0

  • vignette("extendedtask") says up front that it shortens the example
    app's helper signatures, names the real ones once, and uses the app's
    marine and score_hours() names, so a reader who opens the app after
    the vignette finds what it describes (#28).
  • bslib::bind_task_button() gains methods for reactiveAsync(),
    observeAsync() and reactiveValAsync(), so an input_task_button()
    is busy while the task runs and ready when it settles or is cancelled, as
    for an ExtendedTask. The conversion from ExtendedTask no longer needs a
    hand-written observer calling update_task_button() (#26).
  • A resident name reached only through a shipped helper is now left out of
    what a task ships, checked for on the worker before the run, and listed on
    the resident line of print(). It was shipped on every run inside the
    helper's environment, so a connection or template that pool_async(everywhere = )
    made resident for a helper to use was sent again with each task and never
    appeared in the print (#27).
  • A reactiveValAsync() not created by an assignment, as in lapply(), gets
    a default label that is unique in the process, as shiny::reactiveVal()
    does, so such values can be told apart in reactlog. Values assigned to a
    name keep that name as their label, also when the call is piped, as in
    ranking <- reactiveValAsync() |> bind_task_button("rank")
    (#21, #24, @LeonidasZhak).
  • vignette("testing") now covers every primitive: sections on
    observeAsync(), reactiveValAsync() with mirai_async(),
    mode = "queue" and a chained reactiveAsync(), plus the peek() helper
    for reading a reactive that may halt. Its wait_for() matches the
    package's own test helper again, flushing once more after the condition
    holds so observers see the value, and the article notes that a task which
    finishes within the flush that dispatched it is never seen "running".
  • vignette("extendedtask") describes queued invocations as sequential on
    one worker, mentions globals = list(...) for reads capture cannot
    resolve, and says the fan-out table gains a row as each task returns. The
    pkgdown site lists the articles in that order.