Create an alert dispatcher with cancellation

gen.Task here was not necessary but I merged the two methods anyway