Class PollingAStream
java.lang.Object
com.stuypulse.stuylib.streams.angles.PollingAStream
- All Implemented Interfaces:
AStream
,AutoCloseable
,Supplier<Angle>
A PollingAStream calls
AStream.get()
every x milliseconds instead of when the user calls
get-
Constructor Details
-
PollingAStream
Creates a PollingAStream from an AStream and a time value- Parameters:
stream
- astream to poll fromdt
- Number of calls per second
-
-
Method Details