Say I'm holding a value, but I want to turn it into a promise that fulfills delayed by a predetermined amount of time, any suggestions as to where to put a utility function like that?
The first thing that comes to mind would be to create a new member function of Concurrent.Future, i.e. next to the timeout() already there, we could introduce a delay() which would then semantically be something like:
Return a Future that will be fulfilled with the result of this Future no sooner than after delay seconds.
It's basically a sleep for promises. Any comments?