add buffer support for es.wait
Merge pull request #64 from sorrycc/master

add buffer support for es.wait