Runs jobs in the scheduler without timeslicing until all jobs at the specified priority and higher have executed.
WinJS.Utilities.Scheduler.requestDrain(priority, name).done( /* Your success and error handlers */ );
- priority [optional]
The priority to which the scheduler should drain. The default is -15.
- name [optional]
An optional description of the drain request for diagnostics.
A Promise which completes when the drain has finished. Canceling this Promise cancels the drain request. This Promise will never enter an error state.
Minimum WinJS version