I’m going to show you some examples of how Raven handles async, which might seem surprising. Then I’m (I hope) going to convince you that it’s a sensible and even elegant approach to some difficult problems in concurrency, despite being unusual.
You can start a background task with the async keyword, which returns a Task object:
t = async { sleep(1), 2+2 }