EventEmitterReferencingAsyncResource
[<Interface>]
type EventEmitterReferencingAsyncResource =
abstract member eventEmitter: EventEmitterAsyncResource
static member Create<'Func, 'Result, 'This> (eventEmitter: EventEmitterAsyncResource, bind: 'Func -> 'Func, runInAsyncScope: Func<(obj array -> 'Result),'This option,obj array,'Result>, emitDestroy: unit -> EventEmitterReferencingAsyncResource, asyncId: unit -> float, triggerAsyncId: unit -> float) : EventEmitterReferencingAsyncResource
abstract member emitDestroy () : EventEmitterReferencingAsyncResource| Assembly | Xantham.Fable.Node |
| Implements | AsyncResource |
| Attributes | [<Interface>] |
Properties
Methods
static member Create<'Func, 'Result, 'This> (eventEmitter: EventEmitterAsyncResource, bind: 'Func -> 'Func, runInAsyncScope: Func<(obj array -> 'Result),'This option,obj array,'Result>, emitDestroy: unit -> EventEmitterReferencingAsyncResource, asyncId: unit -> float, triggerAsyncId: unit -> float) : EventEmitterReferencingAsyncResourceabstract member emitDestroy () : EventEmitterReferencingAsyncResource
abstract member emitDestroy () : EventEmitterReferencingAsyncResourceCall all destroy hooks. This should only ever be called once. An error will be thrown if it is called more than once. This must be manually called. If the resource is left to be collected by the GC then the destroy hooks will never be called.
Returns. A reference to asyncResource.