Tag Info

New answers tagged

3

It's possible to run scheduled tasks in series by using the "EpilogFunction" option for CreateScheduledTask: Clear[t1, t2] t1 = CreateScheduledTask[Print["second"], {1, 10}] t2 = CreateScheduledTask[Print["first"], {1, 5}, "EpilogFunction" :> StartScheduledTask[t1]] StartScheduledTask[t2] The code snippet above should print "first" to the message ...


2

Here is an example that will print 1, 2, 3, 4, 5 to the messages box (Window -> Messages) with a pause between each, even though they were scheduled to run at the same time. StartScheduledTask /@ { CreateScheduledTask[Print[5]; Pause[1], {2}], CreateScheduledTask[Print[4]; Pause[3], {2}], CreateScheduledTask[Print[3]; Pause[2], {2}], ...



Top 50 recent answers are included