Fix #1241: Add Future based API to AsyncJSEnv
Merge pull request #1255 from gzm0/async-future

Fix #1241: Add Future based API to AsyncJSEnv