Back to project page FrameLite.
The source code is released under:
GNU General Public License
If you think the Android project FrameLite 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.miku.framelite.api; /*from w w w . j a v a 2 s . c o m*/ import com.miku.framelite.api.core.Executor; import com.miku.framelite.api.core.Executor.ResultCallback; public abstract class BaseRequest<T,V> implements IRequest<T, V> { protected boolean isCancelled; public RetResult<T> execute(ResultCallback<T> callback){ return Executor.execute(this, callback); } @Override public boolean isCancelled() { return isCancelled; } @Override public void cancel() { isCancelled=true; } }