2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-09-29 18:53:19 +00:00
This commit is contained in:
2019-12-02 03:29:30 +03:00
parent 5886cbbdac
commit 9c15b830dd
16 changed files with 298 additions and 30 deletions

View File

@@ -107,18 +107,7 @@ class AsyncReply<T> implements Future<T>
{
return this;
}
AsyncReply<T> _then_old(Function(T) callback)
{
_callbacks.add(callback);
if (_resultReady)
callback(result);
return this;
}
AsyncReply<T> error(Function(dynamic) callback)
{
_errorCallbacks.add(callback);