Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(unstable): add lock and unlock methods to Deno.File #12139

Closed
wants to merge 1 commit into from

Conversation

caspervonb
Copy link
Contributor

@caspervonb caspervonb commented Sep 19, 2021

This adds lock and unlock methods to Deno.File along with their sync variants.
This inherits being unstable from the ops being unstable.

Towards #12107

@caspervonb caspervonb changed the title feat(runtime): add lock and unlock methods to Deno.File feat(unstable): add lock and unlock methods to Deno.File Sep 19, 2021
@caspervonb
Copy link
Contributor Author

I'm not too sure about these tests, but its what the rid based tests do so rolling with it for now.

import { assertEquals, unitTest } from "./test_util.ts";
import { readAll } from "../../../test_util/std/io/util.ts";

unitTest(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note that these tests are flaky. Perhaps we could update these tests to use the changes in:

https://github.com/denoland/deno/pull/12255/files

Then remove that file and only use this one (since this transitively tests those functions).

@lucacasonato lucacasonato removed this from the 1.15.0 milestone Oct 11, 2021
@CLAassistant
Copy link

CLAassistant commented Oct 15, 2021

CLA assistant check
All committers have signed the CLA.

@stale
Copy link

stale bot commented Dec 23, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 23, 2021
@stale stale bot closed this Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants