Example #1
0
 @Override
 public void run() {
   try {
     _impl.succeed(_assets.load(_path));
   } catch (Exception e) {
     _impl.fail(e);
   }
 }
Example #2
0
 public Image getImageSync(String path) {
   ImageImpl image = createImage(false, 0, 0, path);
   try {
     image.succeed(load(path));
   } catch (Exception e) {
     image.fail(e);
   }
   return image;
 }