Skip to content

Add async overloads of withLock for FS I/O#420

Merged
MaxDesiatov merged 2 commits into
mainfrom
maxd/async-file-lock
Jun 2, 2023
Merged

Add async overloads of withLock for FS I/O#420
MaxDesiatov merged 2 commits into
mainfrom
maxd/async-file-lock

Conversation

@MaxDesiatov

Copy link
Copy Markdown
Contributor

When converting parts of the SwiftPM codebase from callbacks to async/await I've stumbled upon uses of file system locking that have to work across an async closure call. This is an additive change and has no impact on the existing blocking non-async uses of FileLock.withLock.

When converting parts of the SwiftPM codebase from callbacks to `async`/`await` I've stumbled upon uses of file system locking that have to work across an async closure call. This is an additive change and has no impact on the existing blocking non-async uses of `FileLock.withLock`.
@MaxDesiatov

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@MaxDesiatov

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@MaxDesiatov

Copy link
Copy Markdown
Contributor Author

@swift-ci test windows

@MaxDesiatov

Copy link
Copy Markdown
Contributor Author

@swift-ci test macos

1 similar comment
@MaxDesiatov

Copy link
Copy Markdown
Contributor Author

@swift-ci test macos

@MaxDesiatov

Copy link
Copy Markdown
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit 033ab45 into main Jun 2, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/async-file-lock branch June 2, 2023 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants