Add delay and now functions. Add test runtime with emulated clock to test code with delays without spending actual time on delays.
Would be invaluable for testing asynchronous code, not sure is this even possible with current Loom design but might be worth a try.
There is similar feature in cats-effect, separate effect evaluator with emulated time: https://typelevel.org/cats-effect/docs/core/test-runtime#mocking-time
Add
delayandnowfunctions. Add test runtime with emulated clock to test code with delays without spending actual time on delays.Would be invaluable for testing asynchronous code, not sure is this even possible with current Loom design but might be worth a try.
There is similar feature in cats-effect, separate effect evaluator with emulated time: https://typelevel.org/cats-effect/docs/core/test-runtime#mocking-time