Closed ghost closed 8 years ago
I do not follow what are you trying to achieve.
I not try. But I want make synchronization, but lock before callback, and unlock after callback. 26 окт. 2015 г. 21:19 пользователь "Lucio M. Tato" notifications@github.com написал:
I do not follow what are you trying to achieve.
— Reply to this email directly or view it on GitHub https://github.com/luciotato/waitfor/issues/38#issuecomment-151130669.
maybe:
var anchor = locker(1000); //lock maximum 1 seconds
anchor.lock(); //lock (if not commanded unlock)
var result := wait.for(somethingAsync);
anchor.unlock();
I think last function can be removed. 26 окт. 2015 г. 21:26 пользователь "Lucio M. Tato" notifications@github.com написал:
maybe:
var anchor = locker(1000); //lock maximum 1 seconds anchor.lock(); //lock (if not commanded unlock) var result := wait.for(somethingAsync); anchor.unlock();
— Reply to this email directly or view it on GitHub https://github.com/luciotato/waitfor/issues/38#issuecomment-151132409.
I thinked about wait calling some async function. Or when condition operation (async) will true. 26 окт. 2015 г. 21:30 пользователь "Alexey Solovey" acterhd@gmail.com написал:
I think last function can be removed. 26 окт. 2015 г. 21:26 пользователь "Lucio M. Tato" < notifications@github.com> написал:
maybe:
var anchor = locker(1000); //lock maximum 1 seconds anchor.lock(); //lock (if not commanded unlock) var result := wait.for(somethingAsync); anchor.unlock();
— Reply to this email directly or view it on GitHub https://github.com/luciotato/waitfor/issues/38#issuecomment-151132409.
I think about this:
Can I use it?