Use of $scope.apply is needed to integrate core.async into angular
Macro for doing angularjs apply, so that cleans up the code.