suspend() and resume() APIs