Cancel an abort-aware request
Pass the signal to work that supports abort and keep the flow busy until it settles.
Abort-aware request
Start the simulated import, then cancel it. The flow stays busy until the runner settles.
run: async (_input, { signal }) => {
const response = await fetch('/api/import', { signal })
if (!response.ok) throw new Error('Import failed')
return response.json()
}This demo uses a local, temporary action. It does not send data or write to a service.