Skip to content

AsyncHook

[<Interface>]
type AsyncHook =
    static member Create (enable: unit -> AsyncHook, disable: unit -> AsyncHook) : AsyncHook
    abstract member disable () : AsyncHook
    abstract member enable () : AsyncHook
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Methods

static member Create (enable: unit -> AsyncHook, disable: unit -> AsyncHook) : AsyncHook
abstract member disable () : AsyncHook

Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled.

abstract member enable () : AsyncHook

Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop.