Implement `svwaitdone`. Closes #5