I have a number of consuming works that are fully asynchronous and started roughly at the same time. I mean something like this:
for (i <- 1 to n) {
Future { startWork("work" + i) }
}
But I need to add some time lag to start these works successively at the different time. For example, if (time lag = 1 second) => i-work starts after i seconds. How can simply do this?
Thanks!