Skip to content

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
AssemblyXantham.Fable.Node
ImplementsAsyncResource
Attributes[<Interface>]

Properties

abstract member eventEmitter: EventEmitterAsyncResource

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) : EventEmitterReferencingAsyncResource
abstract member emitDestroy () : EventEmitterReferencingAsyncResource

Call 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.