* Attach a detached obj to the auto-release pool of the current scope. * * @param obj The input obj. * Note: Normally user do not need to call this function explicitly, as * all library call return values are explicitly attached to * the current scope. You only need to do
(obj: T)
| 1025 | * {@link detachFromCurrentScope} to create a detached object. |
| 1026 | */ |
| 1027 | attachToCurrentScope<T extends Disposable>(obj: T): T { |
| 1028 | return this.ctx.attachToCurrentScope(obj); |
| 1029 | } |
| 1030 | |
| 1031 | /** |
| 1032 | * Move obj's attachment to the parent scope. |
no outgoing calls
no test coverage detected