Created a generic decorator for asynchronous processing.
Instead of having to write the Thread code everytime we introduce async, we write a decorator for this purpose which can work with any target function.
The next step is to use this decorator in the email function.