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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user