]> git.bitcoin.ninja Git - ldk-java/commitdiff
Add note about garbage collection of the chan man constructor
authorMatt Corallo <git@bluematt.me>
Thu, 26 May 2022 21:42:56 +0000 (21:42 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 26 May 2022 21:43:14 +0000 (21:43 +0000)
src/main/java/org/ldk/batteries/ChannelManagerConstructor.java

index 122fcff8b45ba9e21f07ff6a7d9f07ed7a9234f3..6a9b9be69e48f8c49d369b3b07e077b3c8952db4 100644 (file)
@@ -14,6 +14,10 @@ import java.util.HashSet;
  * more ChannelMonitors.
  *
  * Also constructs a PeerManager and spawns a background thread to monitor for and notify you of relevant Events.
+ *
+ * Note that you must ensure you hold a reference to any constructed ChannelManagerConstructor objects to ensure you
+ * continue to receive events generated by the background thread which will be stopped if this object is garbage
+ * collected.
  */
 public class ChannelManagerConstructor {
     /**