2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-04-03 21:48:21 +00:00

Static Calling

This commit is contained in:
2022-08-07 23:08:33 +03:00
parent 551f0f4684
commit bf861395c3
10 changed files with 429 additions and 77 deletions

View File

@@ -85,6 +85,14 @@ export default class AsyncReply extends Promise
this.chunk(callback);
}
timeout(milliseconds, onTimeout){
let self = this;
setTimeout(() => {
if (!self.ready && self.exception == null)
onTimeout();
}, milliseconds);
}
trigger(result)
{
if (this.ready)