danfojs icon indicating copy to clipboard operation
danfojs copied to clipboard

readCSV and similar operations should accept an AbortSignal

Open vivere-dally opened this issue 3 months ago • 0 comments

Is your feature request related to a problem? Please describe. I am using danfojs in a react app. There is a common pattern to cancel operations / fetch requests when unmounting. The danfojs reacCSV does not accept a signal parameter, as fetch does.

Describe the solution you'd like

const df = await readCSV(url, {signal})

The signal should be added to the CsvInputOptionsBrowser object and used internally by fetch calls.

vivere-dally avatar Nov 22 '25 18:11 vivere-dally