Skip to content

Commit 4cd2d8b

Browse files
authored
docs: add note about proxy garbage collection (#96)
Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com>
1 parent 9fb0d1c commit 4cd2d8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ts-src/java.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,9 @@ export type AnyProxyRecord = Record<string, ProxyMethod>;
686686
* ## Notes
687687
* * Keep this instance in scope to not destroy the interface proxy.
688688
* * Call {@link JavaInterfaceProxy.reset} to instantly destroy this instance.
689+
* Please note that calling {@link JavaInterfaceProxy.reset} is not necessary,
690+
* the proxy instance will be automatically destroyed when it is garbage collected.
691+
* Calling {@link JavaInterfaceProxy.reset} will just speed up the process.
689692
* * If any method is queried by the java process and not implemented in here,
690693
* an exception will be thrown in the java process.
691694
* * Any errors thrown in the javascript process will be rethrown in the java process.

0 commit comments

Comments
 (0)