detachToParentScope method

  1. @override
PyObject detachToParentScope()
override

Detaches this resource from the current inner ResourceScope and promotes it to the parent outer scope (if one exists).

Implementation

@override
PyObject detachToParentScope() {
  ref.detachToParentScope();
  return this;
}