add methods for get task block code result
allow specify single task for wait
add task method for wait