Should this be an RFC?
Which package is this a feature request for?
Task (@lit-labs/task)
Description
In many cases you'l want to abort pending task runs when a new run is started. For example, you may want to abort a fetch call when a new one is made.
We can enable this by creating an AbortController per task run, passing the signal to the task function, and aborting any signal from a previous pending run when a new run is started.
Alternatives and Workarounds
Userland code could do this.