mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-29 03:02:55 +00:00
Propagate cancellation errors in OnceMap (#1032)
## Summary Ensures that if an operation is cancelled in one thread, we propagate it to others rather than panicking. Related to https://github.com/astral-sh/puffin/issues/1005.
This commit is contained in:
parent
db0c76c4ba
commit
e09a51653e
7 changed files with 25 additions and 10 deletions
|
|
@ -36,6 +36,9 @@ pub enum ResolveError {
|
|||
#[error(transparent)]
|
||||
Join(#[from] tokio::task::JoinError),
|
||||
|
||||
#[error(transparent)]
|
||||
OnceMap(#[from] once_map::Error),
|
||||
|
||||
#[error("Package metadata name `{metadata}` does not match given name `{given}`")]
|
||||
NameMismatch {
|
||||
given: PackageName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue