mirror of
https://github.com/esiur/esiur-dart.git
synced 2025-05-06 12:02:57 +00:00
TriggerChunk
This commit is contained in:
parent
3cd4abcdfc
commit
651f8b65dd
@ -177,30 +177,17 @@ class AsyncReply<T> implements Future<T>
|
|||||||
|
|
||||||
triggerProgress(ProgressType type, int value, int max)
|
triggerProgress(ProgressType type, int value, int max)
|
||||||
{
|
{
|
||||||
if (_resultReady)
|
|
||||||
return;
|
|
||||||
|
|
||||||
//lock (callbacksLock)
|
|
||||||
//{
|
|
||||||
_progressCallbacks.forEach((x) {
|
_progressCallbacks.forEach((x) {
|
||||||
x(type, value, max);
|
x(type, value, max);
|
||||||
});
|
});
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
triggerChunk(T value)
|
triggerChunk(T value)
|
||||||
{
|
{
|
||||||
if (_resultReady)
|
|
||||||
return;
|
|
||||||
|
|
||||||
//lock (callbacksLock)
|
|
||||||
//{
|
|
||||||
_chunkCallbacks.forEach((x) {
|
_chunkCallbacks.forEach((x) {
|
||||||
x(value);
|
x(value);
|
||||||
});
|
});
|
||||||
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: esyur
|
name: esyur
|
||||||
description: Distributed Object Framework.
|
description: Distributed Object Framework.
|
||||||
version: 1.1.2
|
version: 1.1.4
|
||||||
author: Ahmed Zamil <ahmed@dijlh.com>
|
author: Ahmed Zamil <ahmed@dijlh.com>
|
||||||
homepage: https://github.com/esyur/esyur-dart
|
homepage: https://github.com/esyur/esyur-dart
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ main()
|
|||||||
test("Connect to server", () async {
|
test("Connect to server", () async {
|
||||||
|
|
||||||
// connect to the server
|
// connect to the server
|
||||||
var x = await Warehouse.get("iip://192.168.88.220:5000/sys/su", {"username": "admin", "password": "1234"
|
var x = await Warehouse.get("iip://localhost:5000/sys/su", {"username": "admin", "password": "1234"
|
||||||
, "domain": "khalid.com"});
|
, "domain": "example.com"});
|
||||||
|
|
||||||
x.instance.store.on("close", (x){
|
x.instance.store.on("close", (x){
|
||||||
print("Closed");
|
print("Closed");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user