From 651f8b65dde41be172b2b1a161cc525cb68b9a3f Mon Sep 17 00:00:00 2001 From: Ahmed Zamil Date: Thu, 16 Jan 2020 03:52:32 +0300 Subject: [PATCH] TriggerChunk --- lib/src/Core/AsyncReply.dart | 25 ++++++------------------- pubspec.yaml | 2 +- test/main.dart | 4 ++-- 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/lib/src/Core/AsyncReply.dart b/lib/src/Core/AsyncReply.dart index 33be361..1fe5eb1 100644 --- a/lib/src/Core/AsyncReply.dart +++ b/lib/src/Core/AsyncReply.dart @@ -177,30 +177,17 @@ class AsyncReply implements Future 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); + }); } diff --git a/pubspec.yaml b/pubspec.yaml index 18abf7a..5f2abce 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: esyur description: Distributed Object Framework. -version: 1.1.2 +version: 1.1.4 author: Ahmed Zamil homepage: https://github.com/esyur/esyur-dart diff --git a/test/main.dart b/test/main.dart index c38eb74..7550d7d 100644 --- a/test/main.dart +++ b/test/main.dart @@ -7,8 +7,8 @@ main() test("Connect to server", () async { // connect to the server - var x = await Warehouse.get("iip://192.168.88.220:5000/sys/su", {"username": "admin", "password": "1234" - , "domain": "khalid.com"}); + var x = await Warehouse.get("iip://localhost:5000/sys/su", {"username": "admin", "password": "1234" + , "domain": "example.com"}); x.instance.store.on("close", (x){ print("Closed");