Add a comment for future fields in SmartFuture.
authorScott Gasch <[email protected]>
Tue, 18 Oct 2022 06:05:47 +0000 (23:05 -0700)
committerScott Gasch <[email protected]>
Tue, 18 Oct 2022 06:05:47 +0000 (23:05 -0700)
src/pyutils/parallelize/smart_future.py

index 631e25fac24cf27541328f7a52c0ba937fdce8a9..27cbabef13668e5682a2905cfbd3c91b8a3b9b88 100644 (file)
@@ -153,6 +153,9 @@ class SmartFuture(DeferredOperand):
         self.wrapped_future = wrapped_future
         self.id = id_generator.get("smart_future_id")
 
+        # Note: if you are adding any settable properties to this
+        # class, go add them to the set in DeferredOperand.__setattr__()
+
     def get_id(self) -> int:
         """
         Returns: