Duppy.TaskCore task registration. * * A task will be a set of events to watch, and a corresponding function to * execute when one of the events is trigered. * * The executed function may then return a list of new tasks to schedule.
A task is a list of events awaited, * and a function to process events that have occured. * * The 'a parameter is the type of priorities, 'b will be a subset of possible * events.