Skip to content

Commit

Permalink
Implement Send and Sync for Weak<T> (#3138)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Jul 2, 2024
1 parent f76dea0 commit 9f96662
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/libs/core/src/weak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ impl<I: Interface> Weak<I> {
Ok(Self(reference, PhantomData))
}
}

unsafe impl<I: Interface> Send for Weak<I> {}
unsafe impl<I: Interface> Sync for Weak<I> {}

0 comments on commit 9f96662

Please sign in to comment.