How to redirect if a background request is still being executed

How to redirect if a background request is still being executed

tech