Code example for Pair

0
					(System.currentTimeMillis() - start));
		} catch (Exception e) {
			L.w(e);
			ex = e;
		} 
		return new Pair<Exception, Result>(ex, res);
	} 
 
	@Override 
	protected final void onPostExecute(Pair<Exception, Result> result) {
		// try-catch to avoid lifecycle-related crashes 
		try { 
			if (progressListener != null) {
				progressListener.dismiss();
			} 
			if (result.first != null) {
				onFailurePostExecute(result.first);
			} else { 
				onSuccessPostExecute(result.second);
			} 
		} catch (Throwable t) {