return promise
parent
efd1834d14
commit
948a7b84f3
|
@ -85,11 +85,11 @@ class Interrupt extends EventEmitter {
|
|||
}
|
||||
|
||||
start() {
|
||||
this.clear().then(() => this.poller.add(this.valuefd, Epoll.EPOLLPRI | Epoll.EPOLLONESHOT));
|
||||
return this.clear().then(() => this.poller.add(this.valuefd, Epoll.EPOLLPRI | Epoll.EPOLLONESHOT));
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.clear().then(() => this.poller.modify(this.valuefd, Epoll.EPOLLPRI | Epoll.EPOLLONESHOT));
|
||||
return this.clear().then(() => this.poller.modify(this.valuefd, Epoll.EPOLLPRI | Epoll.EPOLLONESHOT));
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
|
Loading…
Reference in New Issue