runToEndOfTasksSync

Runs through all tasks on the background thread, blocking until it completes.