Back to project page webimageloader.
The source code is released under:
Apache License
If you think the Android project webimageloader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.webimageloader.util; // w w w. jav a2s . com import com.webimageloader.loader.LoaderWork; public class ListenerFuture implements Runnable { public interface Task { void run() throws Exception; } private Task task; private LoaderWork.Manager manager; public ListenerFuture(Task task, LoaderWork.Manager manager) { this.task = task; this.manager = manager; } @Override public void run() { try { task.run(); } catch (Throwable t) { manager.deliverError(t); } } }