Fixes #4325 allow async and poll parameters to be templated vars