BeltJNI
This class is a wrapper around a C++ belt.
This can be transformed into LiveData and Kotlin Flow (in gui module) using the asLiveData() and asFlow() methods. After you are done with the belt, you should call the close method to free the resources held in C++. After closing, any subsequent attempt to subscribe to the belt (either by calling asLiveData() or collecting on any Flow created by the asFlow() methods) will result in an exception.
NOTE: This also affects any Flow that you previously created!
NOTE: This does not affect existing subscriptions to Flows that you've previously created.
Parameters
<T>
The type on the belt. This has to match with the declaration in C++!