update cancel function
Merge branch 'master' of git@github.com:fanliao/go-promise