example/basic: rewrite to use event loop
example/basic: rewrite to use event loop

Change-Id: Ic7d8557c42b17238f3dae7fc9287a7cdb5f55eb1
Reviewed-on: https://go-review.googlesource.com/12272
Reviewed-by: Nigel Tao <58ae08b3356928ff9c67562b4719487d54fe8348@golang.org>

swisspol/mobile,swisspol/mobile,cainiaocome/mobile,goldcaddy77/mobile,DanielWorld/mobile,swisspol/mobile,swisspol/mobile,golang/mobile,qskycolor/mobile,ppamorim/mobile,0x90sled/mobile,freeman0211/mobile,xing/gomobile,goldcaddy77/mobile,b54898533/mobile,cainiaocome/mobile,steeve/mobile,qskycolor/mobile,samanalysis/mobile,MaxCy330/mobile,samanalysis/mobile,steeve/mobile,samanalysis/mobile,b54898533/mobile,0x90sled/mobile,golang/mobile,b54898533/mobile,goldcaddy77/mobile,zach-klippenstein/mobile,golang/mobile,xing/gomobile,tempbottle/mobile,goldcaddy77/mobile,tempbottle/mobile,lonphy23t/mobile,xing/gomobile,qskycolor/mobile,xing/gomobile,tempbottle/mobile,b54898533/mobile,ppamorim/mobile,ichu501/mobile,ppamorim/mobile,DanielWorld/mobile,DanielWorld/mobile,cainiaocome/mobile,0x90sled/mobile,cainiaocome/mobile,cainiaocome/mobile,lonphy23t/mobile,freeman0211/mobile,MaxCy330/mobile,golang/mobile,ichu501/mobile,lonphy23t/mobile,steeve/mobile,goldcaddy77/mobile,xing/gomobile,MaxCy330/mobile,samanalysis/mobile,ppamorim/mobile,zach-klippenstein/mobile,tempbottle/mobile,lonphy23t/mobile,samanalysis/mobile,swisspol/mobile,qskycolor/mobile,0x90sled/mobile,freeman0211/mobile,MaxCy330/mobile,lonphy23t/mobile,ichu501/mobile,ppamorim/mobile,b54898533/mobile,steeve/mobile,zach-klippenstein/mobile,MaxCy330/mobile,ichu501/mobile,freeman0211/mobile,zach-klippenstein/mobile,0x90sled/mobile,tempbottle/mobile,DanielWorld/mobile,ichu501/mobile