Issue 5: implement `svwaitdone`