Call spin() immediately, then setResult(grid) when the server replies — the stop sequence lands on it. See it work Guide: Spin lifecycle