Header menu logo FSharp.Data.Adaptive

CallbackExtensions Module

IAdaptiveObject extensions for creating/removing callbacks.

Type extensions

Type extension Description

this.AddMarkingCallback

Full Usage: this.AddMarkingCallback

Parameters:
    callback : unit -> unit

Returns: IDisposable

Registers a callback with the given object that will be executed whenever the object gets marked out-of-date. Note that it does not trigger when the object is currently out-of-date. Returns a disposable for removing the callback.

Extended Type: IAdaptiveObject

callback : unit -> unit
Returns: IDisposable

this.AddWeakMarkingCallback

Full Usage: this.AddWeakMarkingCallback

Parameters:
    callback : unit -> unit

Returns: IDisposable

Registers a callback with the given object that will be executed whenever the object gets marked out-of-date. Note that it does not trigger when the object is currently out-of-date. Returns a disposable for removing the callback.

Extended Type: IAdaptiveObject

callback : unit -> unit
Returns: IDisposable

this.OnNextMarking

Full Usage: this.OnNextMarking

Parameters:
    callback : unit -> unit

Returns: IDisposable

Registers a callback with the given object that will be executed ONCE! when the next out-of-date marking visits the object. Note that it does not trigger when the object is currently out-of-date. Returns a disposable for removing the callback.

Extended Type: IAdaptiveObject

callback : unit -> unit
Returns: IDisposable

this.OnWeakNextMarking

Full Usage: this.OnWeakNextMarking

Parameters:
    callback : unit -> unit

Returns: IDisposable

Registers a callback with the given object that will be executed ONCE! when the next out-of-date marking visits the object. Note that it does not trigger when the object is currently out-of-date. Returns a disposable for removing the callback.

Extended Type: IAdaptiveObject

callback : unit -> unit
Returns: IDisposable

Type something to start searching.