optimize the example for asio loop
Merge pull request #23 from absolute8511/fix-asio-example

optimize the example for asio loop