X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FPoolEmitter.html;h=7f9e3b0de6db1d6c058fe91a45196ef49404ecf1;hb=fb8fbcfd7983c1eadc39411c9b29054e6fa97d5b;hp=93b88c97b009f91fc0165ac982d081daeea5a831;hpb=5e7fdc4a7f8c01824825abd4ad57ec787a4beea7;p=poolifier.git diff --git a/docs/classes/PoolEmitter.html b/docs/classes/PoolEmitter.html index 93b88c97..7f9e3b0d 100644 --- a/docs/classes/PoolEmitter.html +++ b/docs/classes/PoolEmitter.html @@ -1,4 +1,4 @@ -
Static
captureStatic
defaultname
property is set to 'MaxListenersExceededWarning&
Static
Readonly
error'error'
listener is installed.
'error'
listener is installed.
Symbol
s.
emitter.setMaxListeners(n)
or defaults to
Inherited from EventEmitter.getMaxListeners
.once()
).
once('ping')
lis
EventEmitter
instance. The value can be
Static
addStatic
getStatic
getStatic
listenerStatic
onStatic
once
Listens once to the
+abort
event on the providedsignal
.Listening to the
+abort
event on abort signals is unsafe and may +lead to resource leaks since another third party with the signal can +calle.stopImmediatePropagation()
. Unfortunately Node.js cannot change +this since it would violate the web standard. Additionally, the original +API makes it easy to forget to remove listeners.This API allows safely using
+AbortSignal
s in Node.js APIs by solving these +two issues by listening to the event such thatstopImmediatePropagation
does +not prevent the listener from running.Returns a disposable so that it may be unsubscribed from more easily.
+ +