Class PollingIStream
java.lang.Object
com.stuypulse.stuylib.streams.numbers.PollingIStream
- All Implemented Interfaces:
IStream,AutoCloseable,DoubleSupplier
A PollingIStream calls
IStream.get() every x milliseconds instead of when the user calls
get-
Constructor Details
-
PollingIStream
Creates a PollingIStream from an IStream and a time value- Parameters:
stream- istream to poll fromdt- Number of calls per second
-
-
Method Details