working sample of the AsyncScheduler