2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-06-27 14:53:11 +00:00

TriggerChunk

This commit is contained in:
2020-01-16 03:52:32 +03:00
parent 3cd4abcdfc
commit 651f8b65dd
3 changed files with 9 additions and 22 deletions

View File

@ -177,30 +177,17 @@ class AsyncReply<T> implements Future<T>
triggerProgress(ProgressType type, int value, int max)
{
if (_resultReady)
return;
//lock (callbacksLock)
//{
_progressCallbacks.forEach((x) {
x(type, value, max);
});
//}
_progressCallbacks.forEach((x) {
x(type, value, max);
});
}
triggerChunk(T value)
{
if (_resultReady)
return;
//lock (callbacksLock)
//{
_chunkCallbacks.forEach((x) {
x(value);
});
//}
_chunkCallbacks.forEach((x) {
x(value);
});
}