rename onState to wait to match nightmare
Merge pull request #2 from segmentio/clean/wait

rename onState to wait to match nightmare