How to develop a background function in Python ?

This is an example of executing a function in the background. I was searching for an option to run a function in background along with the normal execution flow.

The main execution will continue in the same flow without waiting for the background function to complete and the function set for background execution will continue its execution in the background.

You can modify this code based on your requirement. Just replace the logic inside function under the @background annotation. Hope this tip helps đŸ™‚