Skip to content

Commit 102ae8e

Browse files
authored
Merge pull request #100 from TheBlueMatt/main
Add note about garbage collection of the chan man constructor
2 parents a03df6d + 01bfdc1 commit 102ae8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/ldk/batteries/ChannelManagerConstructor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* more ChannelMonitors.
1515
*
1616
* Also constructs a PeerManager and spawns a background thread to monitor for and notify you of relevant Events.
17+
*
18+
* Note that you must ensure you hold a reference to any constructed ChannelManagerConstructor objects to ensure you
19+
* continue to receive events generated by the background thread which will be stopped if this object is garbage
20+
* collected.
1721
*/
1822
public class ChannelManagerConstructor {
1923
/**

0 commit comments

Comments
 (0)