Skip to content

readCSV and similar operations should accept an AbortSignal #685

Description

@vivere-dally

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions