alDenteAsync function
functions roll until condition is set (but no more than 3 times) nothing async here but in next version
Implementation
//TODO teamDev Function : Make this async. too complicated for nowOn..
/// nothing async here but in next version
bool alDenteAsync(var fFunc, var sFunc, bool condition) {
// supposing; condition = false at the beginning.
num _x = 0;
bool _f = false;
bool _s = false;
do {
_f = fFunc();
_s = sFunc();
_x++;
if (_f == true) {
if (_s == true) {
(condition = true);
isAlDente = true;
}
}
///TODO DartFormat funny lonely ; here.. no effect to code :)
;
if (_x == 3) (condition = true);
} while (condition);
return condition;
}