The task runner with synchronous api