Package org.ldk.structs
Class Future
- java.lang.Object
-
- org.ldk.structs.Future
-
public class Future extends Object
A simple future which can complete once, and calls some callback(s) when it does so.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()voidregister_callback_fn(FutureCallback callback)Registers a callback to be called upon completion of this future.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
register_callback_fn
public void register_callback_fn(FutureCallback callback)
Registers a callback to be called upon completion of this future. If the future has already completed, the callback will be called immediately.
-
-