I wonder how task and taskmonitor work together. How do i trigger an action (@action?) And it seems like task doesn't have any option to pause. so does this mean I have to put a thread inside the task? in another work, let the task control the thread?