make an event handler which is non-blocking. making receiving a message not delay the processing of other messages