You send the `Task` as first message with priority, so it will be the first one that is received and 
you don't need to use a Typedef, `receive((Task t) { result = t; });` should work just as well.