Details
-
Improvement
-
Status: To Do
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
The Scala ResourceScope.using method currently closes the scope that is passed to it. This shouldn't be happening. Ideally, the using method creates a new scope if it's not passed and closes it at exit but when one is passed it will not close it on behalf of the user. This is important because the scope is potentially used elsewhere.
Unfortunately, the code is doing what is currently documented and this is potentially a breaking change. We need to look into options for how to remedy this while causing minimal impact to users.