How to run process in background?

How to run process in background?

So i need to validate username/password and then redirect to another screen. Validation needs to be done in the background process while, and redirection on main thread. How should i do that? Using coroutines?

submitted by /u/Monkeyseedoo9
[link] [comments]