Skip to content

Automatic resource cleanup via using / Symbol.dispose #38

Description

@bytebrujo

Problem

Users must call parser.close() manually to release mmap/file handles; forgetting leaks resources (spec §13.1).

Proposal

Implement [Symbol.dispose] (and [Symbol.asyncDispose]) on CSVParser/CSVWriter so they work with using:

using parser = new CSVParser("data.csv");

Acceptance

  • using releases handles automatically
  • close() still works; double-dispose is safe
  • Tests

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew featurephase-7Polish & developer experiencepriority-lowLower impact / polish

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions