@Override public void run() { try { _impl.succeed(_assets.load(_path)); } catch (Exception e) { _impl.fail(e); } }
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; }