Skip to contents

Stops the running task, if any, and drops queued tasks. The last successful value is kept and the status becomes "idle", so has_value_async() stays TRUE and reading the reactive still returns that value. A task gated with shiny::bindEvent() stays in that state until its next event, and an event still waiting for an upstream async reactive is dropped; any other task re-runs when a dependency changes. Interrupting a task that is already executing requires a daemon pool with a dispatcher, which pool_async() always uses; otherwise the result is discarded when it arrives.

Usage

cancel_async(r)

Arguments

r

An object created by reactiveAsync(), observeAsync() or reactiveValAsync().

Value

NULL, invisibly.