Fix comments typo, rename param, refine obtainMessage

1. fix typo of omit;
2. change param name from "value" to a meaningful "sync";
3. seems obtainMessage can be refined as one line;
@zxw1962 
`assert` will not work in production, if you could change this to an actual `if()` statement it will be great.