Rename TaskLoop to EventDispatcher
Change argument name

The 'end' is associated with 'not include the value'. So use
min and max istead of start and end.