增加 可选特性continuation

增加 协程示例
This commit is contained in:
hyb1996
2018-12-12 17:31:48 +08:00
parent 7e7a7556e8
commit 975940dced
23 changed files with 450 additions and 261 deletions

View File

@@ -65,7 +65,7 @@ module.exports = function (runtime, scope) {
if(landscape === false){
orientation = ScreenCapturer.ORIENTATION_PORTRAIT;
}
return ResultAdapter.promise(javaImages.requestScreenCapture(orientation)).await();
return ResultAdapter.wait(javaImages.requestScreenCapture(orientation));
}
images.save = function (img, path, format, quality) {