Skip to content

suggestion: move Deno.flock() and friends #22178

@iuioiua

Description

@iuioiua

I suggest we remove the following APIs in favour of new Deno.FsFile methods:

  1. Deno.flock() > Deno.FsFile.lock()
  2. Deno.flockSync() > Deno.FsFile.lockSync()
  3. Deno.funlock() > Deno.FsFile.unlock()
  4. Deno.funlockSync() > Deno.FsFile.unlockSync()

The reasoning is the same as other recent deprecations; they accept rid parameters, and we want to make these private.

Alternatively, if these aren't seen as useful, we can remove them. We should be fine to move or remove them, as they are part of the unstable API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions