We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adcf654 commit c9a60b2Copy full SHA for c9a60b2
src/lib.rs
@@ -514,6 +514,12 @@ impl TaskLocals {
514
pub fn context<'p>(&self, py: Python<'p>) -> Bound<'p, PyAny> {
515
self.context.clone_ref(py).into_bound(py)
516
}
517
+
518
+ /// Create a clone of the TaskLocals. No longer uses the runtime, use `clone` instead.
519
+ #[deprecated(note = "please use `clone` instead")]
520
+ pub fn clone_ref(&self, _py: Python<'_>) -> Self {
521
+ self.clone()
522
+ }
523
524
525
impl Clone for TaskLocals {
0 commit comments