task polling

two different techniques for how to poll a task