Trying to create a single-threaded app with 2 async tasks
a 'simulation' task that will yield a stream of int's at various intervals.
a 'calc' task that will poll for new simulated values every loop (say every 100mS), and maintain an aged value result, where the last yielded simulation value is reduced by 1 for each time there is no new value.
The numbers/durations are not really important, its the async, yield, poll bit I'm stuck on. Tried futues-rs, async-std, futures-async-stream