From b7e57b65a54011ada683a01397f3ec5f6b1d96f3 Mon Sep 17 00:00:00 2001 From: MarkusJx <28785953+markusjx@users.noreply.github.com> Date: Sat, 2 Mar 2024 11:00:34 +0100 Subject: [PATCH] docs: add note about proxy garbage collection Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> --- ts-src/java.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts-src/java.ts b/ts-src/java.ts index 958547f..76bee93 100644 --- a/ts-src/java.ts +++ b/ts-src/java.ts @@ -686,6 +686,9 @@ export type AnyProxyRecord = Record; * ## Notes * * Keep this instance in scope to not destroy the interface proxy. * * Call {@link JavaInterfaceProxy.reset} to instantly destroy this instance. + * Please note that calling {@link JavaInterfaceProxy.reset} is not necessary, + * the proxy instance will be automatically destroyed when it is garbage collected. + * Calling {@link JavaInterfaceProxy.reset} will just speed up the process. * * If any method is queried by the java process and not implemented in here, * an exception will be thrown in the java process. * * Any errors thrown in the javascript process will be rethrown in the java process.