Using the task scheduler

There are times when you would like a routine to run, but perhaps it's a long-running routine, or it's something that will lock up a user from performing other tasks.

The task scheduler allows you to create tasks and schedule them to run at a later time. The tasks will execute in a background session, which means they will not lock up a user session. This means that you could build a feature where the user is able to kick off a long-running process, but they don't have to wait around for it to "unlock" their screen. Instead, they can continue and perform other tasks while the long-running one runs.

This recipe will show you how to create a task and add it to the task scheduler to run at a later time.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.160.181