static Future<T> delayForResult<T>(Duration duration, AsyncTask<T> task) async{ return Future.delayed(duration, (){ return task(); }); }