Fix #1241: Add Future based API to AsyncJSEnv

Indeed. Good I put a comment in this case... it should be `pipeResult orElse vmComplete`