Ch 506: Allow asynchronous visitor context processing

This needs a var declaration (it got moved out of the function that originally had the var declaration).